Пример #1
0
 public HttpResponseMessage DeleteActivity(long actityID)
 {
     using (FinanceTier fT = new FinanceTier())
     {
         bool response = fT.DeleteActivity(actityID);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Пример #2
0
 public HttpResponseMessage RetrieveProcessorName()
 {
     IList<FinanceDD> response;
     using (FinanceTier fT = new FinanceTier())
     {
         response = fT.ListProcessorName();
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Пример #3
0
 public HttpResponseMessage RetrieveFundedContract(Int64 MerchantId)
 {
     IList<AddFinanceModel> response;
     using (FinanceTier fT = new FinanceTier())
     {
         response = fT.RetrieveFundedContract(MerchantId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Пример #4
0
 public HttpResponseMessage SaveFinanceActivity(SearchFinanceModel financeModel)
 {
     IList<FinanceModel> response;
     using (FinanceTier fT = new FinanceTier())
     {
         response = fT.InsertFinanceDetails(financeModel);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Пример #5
0
        public HttpResponseMessage SearchFinanceActivity(SearchFinanceModel model)
        {
            IList<FinanceModel> response;
            try
            {

                using (FinanceTier fT = new FinanceTier())
                {
                    response = fT.RetrieveFinanceDetails(model);

                }
                return this.Request.CreateResponse(HttpStatusCode.OK, response);
            }
            catch (Exception ex)
            {
                //throw ex.Message;
            }
            return this.Request.CreateResponse(HttpStatusCode.OK);
        }