public ActionResult Update_AgentProfile(string Code) { Models.MaintenanceAgentProfile.AgentModel AgentModel = new Models.MaintenanceAgentProfile.AgentModel(); AgentModel.AgentProfile = setAgentProfile(service.getAgentProfilebyCode(Code)); var ID = AgentModel.AgentProfile.ID; AgentModel.AgentAddress = setAgentAddress(service.getAgentAddressByID(ID)); AgentModel.Gender = setGender(customerSvc.getGender()); AgentModel.CivilStatus = setCivilStatus(customerSvc.getCivilStatus()); AgentModel.District = setDistrict(customerSvc.getDistrict()); AgentModel.Organization = setOrganization(customerSvc.getOrganization()); AgentModel.Province = setProvince(customerSvc.getProvince()); AgentModel.City = setCity(service.getCity(ID)); AgentModel.AgentType = setAgentType(service.getAgentType()); AgentModel.HomeOwnership = setHomeOwnership(customerSvc.getHomeOwnership()); AgentModel.WithCashCard = setWithCashCard(); return(View(AgentModel)); }
public ActionResult wdLoanApplication(string code) { BusinessObjects.LoanApplicationModel loan = new BusinessObjects.LoanApplicationModel(); if (code.Length > 3) { loan = new BusinessObjects.LoanApplicationModel(); loan = service.getLoanFormDetails(code); loan.orgs = customerComp.getOrganization(); loan.districts = customerComp.getDistrict(); loan.applicationTypes = customerComp.getApplicationType(); loan.products = service.GetLoanProducts(); // loan.sets = service.GetLoanSet(); // loan.terms = service.GetLoanTerms(); loan.borrowerProfile = service.GetBorrowerProfile(loan.BorrowerCode); loan.reqDocs = service.getBorrowerRequiredDocuments(loan.BorrowerCode); } // loan.AccountNo = loanID; return(View("LoanApplication", loan)); }