// // GET: /ComplainEntry/ public ActionResult EditForComplainEntry(int id) { EmergecyMasterModel model = new EmergecyMasterModel(); EmergencyMasterProvider emProvider = new EmergencyMasterProvider(); model = emProvider.GetList().Where(x => x.EmergencyMasterId == id).FirstOrDefault(); return(PartialView("_EditForComplainEntry", model)); }
public ActionResult EmergencyDailyCensus(DateTime CreatedDate) { EmergecyMasterModel model = new EmergecyMasterModel(); EmergencyMasterProvider emProvider = new EmergencyMasterProvider(); //model.EmergencyMasterModelList = emProvider.GetList().Where(x => x.Date == CreatedDate).ToList(); model.OpdEmergencyViewModelList = emProvider.GetEmergencyListForCencus(CreatedDate).ToList(); return(View(model)); }
public ActionResult EmergencyDailyCensus(int id) { EmergecyMasterModel model = new EmergecyMasterModel(); EmergencyMasterProvider emProvider = new EmergencyMasterProvider(); //This is only for report purpose ie change dynamically shared layout pages if (id == 1) { model.SerialNumber = 100; } else { model.SerialNumber = 101; } return(View(model)); }