CapRaffle.Controllers.AccountController.LogOn C# (CSharp) Метод

LogOn() приватный Метод

private LogOn ( LogOnViewModel model, string returnUrl ) : System.Web.Mvc.ActionResult
model CapRaffle.Models.LogOnViewModel
returnUrl string
Результат System.Web.Mvc.ActionResult
        public ActionResult LogOn(LogOnViewModel model, string returnUrl)
        {
            if (ModelState.IsValid)
            {
                if (accountRepository.Authenticate(model.Email, model.Password))
                {
                    return Redirect(String.IsNullOrEmpty(returnUrl) ? Url.Action("/"): returnUrl);
                }
                else
                {
                    ModelState.AddModelError("", "Incorrect email or password");
                    TempData["ForgotPassword"] = "ForgotPassword";
                }
            }
            return View();
        }

Same methods

AccountController::LogOn ( ) : System.Web.Mvc.ActionResult