public ActionResult CreateEI(int id)
        {
            EmergecyMasterModel obj = new EmergecyMasterModel();

            obj.EmergencyInvestigationListModel = new EmergencyInvestigationListModel();
            obj.EmergencyMasterId = id;
            for (int i = 1; i <= 1; i++)
            {
                var mod = new EmergencyInvestigationListModel();

                obj.EmergencyInvestigationList.Add(mod);
            }

            return(PartialView("_CreateEI", obj));
        }
        public ActionResult EditEI(int id)
        {
            EHMSEntities        ent   = new EHMSEntities();
            EmergecyMasterModel model = new EmergecyMasterModel();
            var EmergencyInvList      = ent.EmergencyInvestigationDetails.Where(x => x.EmergencyMasterId == id).ToList();

            foreach (var item in EmergencyInvList)
            {
                EmergencyInvestigationListModel EIDM = new EmergencyInvestigationListModel();
                //EIDM.EmergencyMasterId =id;
                EIDM.TestID  = item.TestId;
                EIDM.Remarks = item.Remarks;
                model.EmergencyInvestigationList.Add(EIDM);
            }
            model.EmergencyMasterId = id;
            return(PartialView("_EditEI", model));
        }
        public ActionResult AddInvestigationList()
        {
            EmergencyInvestigationListModel model = new EmergencyInvestigationListModel();

            return(PartialView("addInvestigation", model));
        }