public HttpResponseMessage UpdateAcquirerMapping(HttpRequestMessage request, [FromBody] AcquirerMapping AcquirerMappingModel)
        {
            return(GetHttpResponse(request, () =>
            {
                var AcquirerMapping = _MPRBSService.UpdateAcquirerMapping(AcquirerMappingModel);

                return request.CreateResponse <AcquirerMapping>(HttpStatusCode.OK, AcquirerMapping);
            }));
        }
        public HttpResponseMessage GetAcquirerMapping(HttpRequestMessage request, int mpr_Acquirer_Mapping_Id)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                AcquirerMapping AcquirerMapping = _MPRBSService.GetAcquirerMapping(mpr_Acquirer_Mapping_Id);

                // notice no need to create a seperate model object since AcquirerMapping entity will do just fine
                response = request.CreateResponse <AcquirerMapping>(HttpStatusCode.OK, AcquirerMapping);

                return response;
            }));
        }
        public HttpResponseMessage DeleteAcquirerMapping(HttpRequestMessage request, [FromBody] int mpr_Acquirer_Mapping_Id)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                // not that calling the WCF service here will authenticate access to the data
                AcquirerMapping AcquirerMapping = _MPRBSService.GetAcquirerMapping(mpr_Acquirer_Mapping_Id);

                if (AcquirerMapping != null)
                {
                    _MPRBSService.DeleteAcquirerMapping(mpr_Acquirer_Mapping_Id);

                    response = request.CreateResponse(HttpStatusCode.OK);
                }
                else
                {
                    response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No Acquirere mapping found under that ID.");
                }

                return response;
            }));
        }
 public AcquirerMapping UpdateAcquirerMapping(AcquirerMapping AcquirerMapping)
 {
     return(Channel.UpdateAcquirerMapping(AcquirerMapping));
 }