Exemplo n.º 1
0
        public ActionResult Edit(int id, IpdMedicalRecord model)
        {
            IpdMedicalRecordProvider pro = new IpdMedicalRecordProvider();

            int i = pro.Update(model);

            return(RedirectToAction("AddIpdMrMedical", new { id = model.PatientID, ipdid = model.IpdRegisterationID }));
        }
Exemplo n.º 2
0
 public ActionResult EditIpdMRCommonTest(IpdMRCommonTestModel model)
 {
     if (model.CommonTestName == null || model.Details == null || model.IpdMRcCommonTesDate == DateTime.Parse("1/1/0001 12:00:00 AM"))
     {
         TempData["Error"] = "0";
         return(RedirectToAction("IpdMRCommonTestDetailsByID", new { id = model.IpdRegistrationID, opdid = model.OpdID }));
     }
     if (ModelState.IsValid)
     {
         pro.Update(model);
         return(RedirectToAction("IpdMRCommonTestDetailsByID", new { id = model.IpdRegistrationID, opdid = model.OpdID }));
     }
     else
     {
         return(RedirectToAction("IpdMRCommonTestDetailsByID", new { id = model.IpdRegistrationID, opdid = model.OpdID }));
     }
 }