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