public ActionResult EditDoctor(int DocID) { ManageDoctorEdit doc = new ManageDoctorEdit(); doc.Doctor = DataBase.Session.Load <DoctorModel>(DocID); return(View(doc)); }
public ActionResult EditDoctor(ManageDoctorEdit post) { if (post != null) { DataBase.Session.Update(post.Doctor); } return(RedirectToAction("DoctorList")); }