[HttpPost]
public ActionResult LogOn(LogOnModel model)
{
if (ModelState.IsValid)
{
if (AuthenticateUser(model))`enter code here`
{
return View ('HomePage')
}
else
{
ModelState.AddModelError("", "The user name or password provided is incorrect.");
}
}
return View(model);
}
[HttpPost]
public ActionResult LogOn(LogOnMode