public ActionResult ChangePassword(ProfileEditViewModel model) { if (ModelState.IsValid) { ObjectParameter output = new ObjectParameter("responseMessage", typeof(string)); db.PR_ChangePassword(model.profileData.IdCard, model.changePass.OldPassword, model.changePass.NewPassword, output); ModelState.AddModelError("", output.Value.ToString()); return(View("UserProfile", model)); } return(View("UserProfile", model)); }