Ejemplo n.º 1
0
 public HttpResponseMessage RetriveMerchants(string businessName = null, string rnc = null, string legalName = null, string ownerName = null,
     Int64? merchantId = null, Int64? contractId = null,
     Int64? workflowId = null, Int64? statusId = null, Int64? processornbr = null, string processorName = null, Int64? tasktype = null)
 {
     IList<MerchantsModel> response;
     using (MerchantTier mt = new MerchantTier())
     {
         response = mt.RetrieveMerchants(businessName, rnc, legalName, ownerName, merchantId, contractId,
      workflowId, statusId, processornbr, processorName, tasktype);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Ejemplo n.º 2
0
 public HttpResponseMessage RetriveMerchants(Int64 merchantId)
 {
     MerchantsModel response;
     using (MerchantTier mt = new MerchantTier())
     {
         response = mt.RetrieveMerchants(merchantId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }