public HttpResponseMessage RetrivePreviewDocument(int documentId) { IList<DocumentsModel> response; using (CollectionsTier ct = new CollectionsTier()) { response = ct.RetrieveDocuments(documentId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
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); } }