コード例 #1
0
        public ActionResult EditPatient(int PatID)
        {
            ManagePatientEdit pat = new ManagePatientEdit();

            pat.Patient = DataBase.Session.Load <PatientModel>(PatID);
            return(View(pat));
        }
コード例 #2
0
 public ActionResult EditPatient(ManagePatientEdit post)
 {
     if (post != null)
     {
         DataBase.Session.Update(post.Patient);
     }
     return(RedirectToAction("PatientList"));
 }