public ActionResult EditPatient(int PatID) { ManagePatientEdit pat = new ManagePatientEdit(); pat.Patient = DataBase.Session.Load <PatientModel>(PatID); return(View(pat)); }
public ActionResult EditPatient(ManagePatientEdit post) { if (post != null) { DataBase.Session.Update(post.Patient); } return(RedirectToAction("PatientList")); }