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)); }
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)); }