public HttpResponseMessage ContractFunded(FundingModel model)
 {
     using (ContractTier obj = new ContractTier())
     {
         if (obj.ContractFunded(model))
             return Request.CreateResponse(HttpStatusCode.OK);
         else
             return this.Request.CreateResponse(HttpStatusCode.NotModified);
     }
 }
Beispiel #2
0
 public HttpResponseMessage RenewalFunded(FundingModel model)
 {
     try
     {
         using (RenewalsTier obj = new RenewalsTier())
         {
             if (obj.RenewalFunded(model))
                 return Request.CreateResponse(HttpStatusCode.OK);
             else
                 return this.Request.CreateResponse(HttpStatusCode.NotModified);
         }
     }
     catch (Exception ex)
     { }
     return Request.CreateResponse(HttpStatusCode.OK);
 }
Beispiel #3
0
 public bool RenewalFunded(FundingModel model)
 {
     return new DataAccess.DataAccess().ExecuteNonQuery("azn_ren_spCompleteFunding", new
         {
             MerchantId = model.merchantId,
             ContractId = model.contractId,
             BankId = model.bankId,
             AccountNumber = model.accountNumber,
             AccountName = model.accountName,
             McaAmount = model.mcaAmount,
             ExpenseAmount = model.expenseAmount,
             TotalOwnedAmount = model.totalFundingAmount,
             OwnerId = model.ownerId,
             ContractReviewed = model.contractReviewed,
             ContractFunded = model.contractFunded,
             Action = model.action
         });
 }
Beispiel #4
0
 public bool ContractFunded(FundingModel model)
 {
     return contractsRepository.ContractFunded(model);
 }
Beispiel #5
0
 public bool RenewalFunded(FundingModel model)
 {
     return renewalRepository.RenewalFunded(model);
 }