コード例 #1
0
 public ActionResult Edit([Bind(Include = "ChartNo,PatientFirstName,PatientLastName,PatientEmail,PatientPhoneNo,Sex,PatientBirthDate,AppointmentDate,PatientAddress")] eChart echart)
 {
     if (ModelState.IsValid)
     {
         db.Entry(echart).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(echart));
 }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "TreatmentItemsNo,TreatmentNo,LOC,SURF,PROC,ProcedureDescription,DOS,DDS,COMP")] TreatmentItems treatmentItems)
 {
     if (ModelState.IsValid)
     {
         db.Entry(treatmentItems).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.TreatmentNo = new SelectList(db.Treatments, "TreatmentNo", "TreatmentStatus", treatmentItems.TreatmentNo);
     return(View(treatmentItems));
 }
コード例 #3
0
 public ActionResult Edit([Bind(Include = "TreatmentNo,TreatmentStatus,InitialVisit,LastVisit,NextVisit,ChartNo")] Treatment treatment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(treatment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ChartNo = new SelectList(db.eCharts, "ChartNo", "PatientFirstName", treatment.ChartNo);
     return(View(treatment));
 }