public ActionResult ChangePassword(ChangePasswordModel changePasswordModel) { using (UserBAL userBAL = new UserBAL(ContextInfo)) { if (ModelState.IsValid) { userBAL.ChangePassword(changePasswordModel); } } if (changePasswordModel.HasErrorByType(LMYFrameWorkMVC.Common.LookUps.ErrorType.Critical) || changePasswordModel.HasSuccess(LMYFrameWorkMVC.Common.LookUps.SuccessType.Full)) { return(base.RedirectToActionWithData(new Dictionary <string, object> { { "baseModel", changePasswordModel } }, "ChangePassword", "Account")); } return(View(changePasswordModel)); }