示例#1
0
        public ActionResult Edit(int id)
        {
            SetupEmployeeMasterModel     model  = new SetupEmployeeMasterModel();
            SetupEmployeeMasterProviders SEMPro = new SetupEmployeeMasterProviders();

            model = SEMPro.GetList().Where(x => x.EmployeeMasterId == id).FirstOrDefault();
            model.EmployeeEducationInfoList = SEMPro.GetEmployeeEducationInfo().Where(x => x.EmployeeMasterId == id).ToList();
            model.EmployeeTrainingInfoList  = SEMPro.GetEmployeeTrainingInfo().Where(x => x.EmployeeMasterId == id).ToList();
            model.EmployeeMasterId          = id;
            return(View(model));
        }