public ActionResult InfoChange(PatientView model) { try { if (ModelState.IsValid) { if (_patientBusiness.CheckExistsAccount(model.Account, model.ID)) { ModelState.AddModelError("ExistsAccountError", "Tài khoản này đã tồn tại trong hệ thống"); } if (_patientBusiness.Edit(model)) { _patientBusiness.Save(); return(Redirect("/thong-tin-tai-khoan.html")); } } return(View(model)); } catch (Exception) { return(View(model)); } }