public HttpResponseMessage UpdateMerchantBusinessProcessorInformation([FromBody] MPMerchantProcessorInfoModel entity) { using (MerchantProfileTier mt = new MerchantProfileTier()) { try { return this.Request.CreateResponse(HttpStatusCode.OK, mt.UpdateMerchantBusinessProcessorInformation(entity)); } catch (Exception ex) { return this.Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message); } } }
public HttpResponseMessage UpdateMerchantBusinessProcessorInformation(Int64 merchantId, [FromUri]int Terminal, [FromUri]int processorTypeId, [FromUri]string processorNumber, [FromUri]DateTime dateGracePeriod, [FromUri]int industryTypeID, [FromUri]DateTime firstProcessedDate, [FromUri]int processorId) { using (MerchantProfileTier mt = new MerchantProfileTier()) { try { return this.Request.CreateResponse(HttpStatusCode.OK, mt.UpdateMerchantBusinessProcessorInformation(merchantId, Terminal, processorTypeId, processorNumber, dateGracePeriod, industryTypeID, firstProcessedDate, processorId)); } catch (Exception ex) { return this.Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message); } } }