示例#1
0
        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");
        }
示例#2
0
 public ActionResult GetLoginPanel()
 {
     LoginViewModel model = new LoginViewModel();
     return PartialView("_LoginPanel", model);
 }