Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public IActionResult Login(LoginViewModel model) { if (ModelState.IsValid) { var user = _accountRepo.CheckValidUser(model.Email, model.Password); if (user == null) { _toastNotification.AddErrorToastMessage("Invlid User Input. Try Again."); return(View(model)); } _toastNotification.AddSuccessToastMessage("Login Successfull."); return(RedirectToAction("Index", "Home")); } return(View(model)); }