public void Save(User model) { model.Id = base.Save(model); }
public ActionResult Login() { var user = new User(); return View(user); }
public ActionResult Login(User user) { if (!_userRepository.Login(user.Email, user.Password, true)) { throw new Exception("Invalid login"); } return RedirectToAction("Index"); }
public new ActionResult User(User model) { _userRepository.Save(model); return RedirectToAction("Users"); }