Exemplo n.º 1
0
        public ActionResult IndexForDischarge(int id)
        {
            DischargeProvider   dprovider = new DischargeProvider();
            EmergecyMasterModel model     = new EmergecyMasterModel();

            model.EmergencyMasterModelList = dprovider.GetSelectedData(id);
            model.EmergencyMasterId        = id;
            return(PartialView("_IndexForDischarge", model));
        }
Exemplo n.º 2
0
        public ActionResult EditForDischarge(EmergecyMasterModel model)
        {
            DischargeProvider dprovider = new DischargeProvider();

            if (ModelState.IsValid)
            {
                dprovider.Update(model);
                model.EmergencyMasterModelList = dprovider.GetSelectedData(model.EmergencyMasterId);
            }
            return(PartialView("_IndexForDischarge", model));
        }