コード例 #1
0
        public ActionResult EditDoctor(int DocID)
        {
            ManageDoctorEdit doc = new ManageDoctorEdit();

            doc.Doctor = DataBase.Session.Load <DoctorModel>(DocID);
            return(View(doc));
        }
コード例 #2
0
 public ActionResult EditDoctor(ManageDoctorEdit post)
 {
     if (post != null)
     {
         DataBase.Session.Update(post.Doctor);
     }
     return(RedirectToAction("DoctorList"));
 }