예제 #1
0
 public HttpResponseMessage RetrivePreviewDocument(int documentId)
 {
     IList<DocumentsModel> response;
     using (CollectionsTier ct = new CollectionsTier())
     {
         response = ct.RetrieveDocuments(documentId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
예제 #2
0
 public HttpResponseMessage RetriveDocument(Int64 merchantId, Int64 contractId, int documentTypeId)
 {
     IList<DocumentsModel> response;
     using (CollectionsTier ct = new CollectionsTier())
     {
         response = ct.RetrieveDocuments(merchantId, contractId, documentTypeId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }