public ActionResult ChangePassword(PasswordChangeModel model) { if (ModelState.IsValid) { KodlatvUser user = kodlatvusermanager.Find(x => x.ActivateGuid == model.PasswordGuid); if (user == null) { BusinessLayerResult <KodlatvUser> layerResult = new BusinessLayerResult <KodlatvUser>(); layerResult.AddError(ErrorMessageCode.UserCouldNotFind, "Kullanıcı Bulunamadı."); ErrorViewModel errorNotifyObj = new ErrorViewModel() { Items = layerResult.Errors, Title = "Kullanıcı Bulunamadı.", RedirectingUrl = "/Other/ChangePassword" + model.PasswordGuid }; return(View("Error", errorNotifyObj)); } else { user.Password = model.Password; kodlatvusermanager.Uptade(user); //TODO return(Redirect("/Home/Login")); } } return(View(model)); }