public HttpResponseMessage ListDocumentTypes(int workflowId) { IList<DocumentsModel> response; using (DocumentTier dT = new DocumentTier()) { response = dT.ListDocumentTypes(workflowId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage RetriveAllDocuments(Int64 merchantId, Int64 contractId) { IList<DocumentsModel> response; using (DocumentTier dT = new DocumentTier()) { response = dT.RetrieveAllDocs(merchantId, contractId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage InsertContDocument([FromBody] DocumentsModel model) { using (DocumentTier mt = new DocumentTier()) { if (mt.InsertDocuments(model)) { return this.Request.CreateResponse(HttpStatusCode.OK); } else { return this.Request.CreateResponse(HttpStatusCode.NotModified); } } }