public ActionResult Login(LoginModel model) { if (string.IsNullOrEmpty(model.Email) || string.IsNullOrEmpty(model.Password)) { return View(model); } SimpleSessionPersister.Username = model.Email; return RedirectToAction("Index","Profile"); }
public ActionResult Registration(LoginModel model) { repository.Save(model); return RedirectToAction("Index"); }