BookManagement.Controllers.AccountController.Login C# (CSharp) Метод

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

private Login ( LoginModel model, string returnUrl ) : System.Web.Mvc.ActionResult
model BookManagement.Models.LoginModel
returnUrl string
Результат System.Web.Mvc.ActionResult
        public ActionResult Login(LoginModel model, string returnUrl)
        {
            if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.Password, persistCookie: model.RememberMe))
            {
                return RedirectToLocal(returnUrl);
            }

            // If we got this far, something failed, redisplay form
            ModelState.AddModelError("", "The user name or password provided is incorrect.");
            return View(model);
        }

Same methods

AccountController::Login ( string returnUrl ) : System.Web.Mvc.ActionResult