예제 #1
0
        public ActionResult IndexForComplainEntry(int id)
        {
            ComplainEntryProviders cmProvider = new ComplainEntryProviders();
            EmergecyMasterModel    model      = new EmergecyMasterModel();

            model.EmergencyMasterModelList = cmProvider.GetSelectedData(id);
            model.EmergencyMasterId        = id;
            return(PartialView("_IndexForComplainEntry", model));
        }
예제 #2
0
 public ActionResult EditForComplainEntry(EmergecyMasterModel model)
 {
     if (ModelState.IsValid)
     {
         ComplainEntryProviders cmProvider = new ComplainEntryProviders();
         cmProvider.UpdateEmasterForComplainEntry(model);
         model.EmergencyMasterModelList = cmProvider.GetSelectedData(model.EmergencyMasterId);
     }
     return(PartialView("_IndexForComplainEntry", model));
 }