예제 #1
0
        public ActionResult FetchCustomerRecordByID(string Code)
        {
            Models.Customer.CustomerModel custModel = new Models.Customer.CustomerModel();
            custModel.custRecord = SetCustomerRecordModel(service.getCustomerRecordByCode(Code));
            var ID = custModel.custRecord.ID;

            custModel.custCharacter  = setCustomerCharacterModel(service.getCustomerCharacterByID(ID));
            custModel.custEducation  = setCustomerEducationModel(service.getCustomerEducationByID(ID));
            custModel.custDependents = setCustomerDependentModel(service.getCustomerDependentsByID(ID));
            custModel.custAddress    = setCustomerAddressModel(service.getCustomerAddressByID(ID));
            custModel.custEmployment = setCustomerEmploymentModel(service.getCustomerEmploymentRecordByID(ID));
            var pvr = new PartialViewResult();

            pvr = PartialView("_Display_CustomerRecord", custModel);
            return(pvr);
        }