Exemplo n.º 1
0
        public virtual HttpResponseMessage PostNew(TDataType document)
        {
            _dataRepository.CreateNew(document);
            var response = Request.CreateResponse <TDataType>(HttpStatusCode.Created, document);

            string uri = Url.Link("DefaultApi", new { id = DataDocument.GetDocumentId(document) });

            response.Headers.Location = new Uri(uri);
            return(response);
        }
Exemplo n.º 2
0
 public void StoreWorkflowTrigger(WorkflowTrigger wft)
 {
     _triggers.CreateNew(wft);
 }