public HttpResponseMessage DeleteActivity(long actityID) { using (FinanceTier fT = new FinanceTier()) { bool response = fT.DeleteActivity(actityID); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage RetrieveProcessorName() { IList<FinanceDD> response; using (FinanceTier fT = new FinanceTier()) { response = fT.ListProcessorName(); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage RetrieveFundedContract(Int64 MerchantId) { IList<AddFinanceModel> response; using (FinanceTier fT = new FinanceTier()) { response = fT.RetrieveFundedContract(MerchantId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage SaveFinanceActivity(SearchFinanceModel financeModel) { IList<FinanceModel> response; using (FinanceTier fT = new FinanceTier()) { response = fT.InsertFinanceDetails(financeModel); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
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); }