Esempio n. 1
0
 private void TranslateLoanRequestOkyDto(LoanRequestOkyDto loanRequestOkyDto, LoanRequest loanRequest)
 {
     loanRequest.LoanRequestOkyAsistant.OKyDate         = loanRequestOkyDto.OKyDate;
     loanRequest.LoanRequestOkyAsistant.OkyAss          = loanRequestOkyDto.OkyAss;
     loanRequest.LoanRequestOkyAsistant.OkyQty          = loanRequestOkyDto.OkyQty;
     loanRequest.LoanRequestOkyAsistant.PaymentCount    = loanRequestOkyDto.PaymentCount;
     loanRequest.LoanRequestOkyAsistant.OkyDuration     = loanRequestOkyDto.OkyDuration;
     loanRequest.LoanRequestOkyAsistant.OkyDurationType = loanRequestOkyDto.OkyDurationType;
     loanRequest.LoanRequestOkyAsistant.RegPerId        = loanRequestOkyDto.RegPerId;
 }
Esempio n. 2
0
 public string AddOrUpdateLoanRequestOkyAssistant(Guid loanRequestId, LoanRequestOkyDto loanRequestOkyDto)
 {
     try
     {
         LoanRequestRepository repository  = new LoanRequestRepository();
         LoanRequest           loanRequest =
             repository.ActiveContext.LoanRequests.FirstOrDefault(lr => lr.Id == loanRequestId);
         if (loanRequest == null)
         {
             return("this request with this Request no :" + loanRequestOkyDto.ReqNo.ToString() + " is not there");
         }
         this.TranslateLoanRequestOkyDto(loanRequestOkyDto, loanRequest);
         repository.Update(loanRequest);
         return("requestOkyAss added successfully");
     }
     catch (Exception exception)
     {
         return(exception.Message);
     }
 }
Esempio n. 3
0
 public string AddOrUpdateLoanRequestOkyAssistant(Guid loanRequestId, LoanRequestOkyDto loanRequestOkyDto)
 {
     try
     {
         LoanRequestRepository repository = new LoanRequestRepository();
         LoanRequest loanRequest =
             repository.ActiveContext.LoanRequests.FirstOrDefault(lr => lr.Id == loanRequestId);
         if (loanRequest == null) return "this request with this Request no :" + loanRequestOkyDto.ReqNo.ToString() + " is not there";
         this.TranslateLoanRequestOkyDto(loanRequestOkyDto , loanRequest);
         repository.Update(loanRequest);
         return "requestOkyAss added successfully";
     }
     catch (Exception exception)
     {
         return exception.Message;
     }
 }
Esempio n. 4
0
 private void TranslateLoanRequestOkyDto(LoanRequestOkyDto loanRequestOkyDto, LoanRequest loanRequest)
 {
     loanRequest.LoanRequestOkyAsistant.OKyDate = loanRequestOkyDto.OKyDate;
     loanRequest.LoanRequestOkyAsistant.OkyAss = loanRequestOkyDto.OkyAss;
     loanRequest.LoanRequestOkyAsistant.OkyQty = loanRequestOkyDto.OkyQty;
     loanRequest.LoanRequestOkyAsistant.PaymentCount = loanRequestOkyDto.PaymentCount;
     loanRequest.LoanRequestOkyAsistant.OkyDuration = loanRequestOkyDto.OkyDuration;
     loanRequest.LoanRequestOkyAsistant.OkyDurationType = loanRequestOkyDto.OkyDurationType;
     loanRequest.LoanRequestOkyAsistant.RegPerId = loanRequestOkyDto.RegPerId;
 }
Esempio n. 5
0
 public void Creat_RequestOkyAss(Guid id)
 {
     PersonAccountService ps = new PersonAccountService();
     LoanRequestOkyDto loanRequestOkyDto = new LoanRequestOkyDto();
     loanRequestOkyDto.ReqNo = 1;
     loanRequestOkyDto.OKyDate = 13911032;
     loanRequestOkyDto.OkyAss = "moavenreis";
     string str = ps.AddOrUpdateLoanRequestOkyAssistant(id ,loanRequestOkyDto);
 }