public ActionResult LogIn(LoginViewModel model) { if (UserService.VerifyLoginAndPassword(model.Email, model.Password)) { //FormsAuthentication.SetAuthCookie(model.Email, false); Session["user"] = model.Email; } return RedirectToAction("Index", "Home"); }
public ActionResult GetLoginPanel() { LoginViewModel model = new LoginViewModel(); return PartialView("_LoginPanel", model); }