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); }
public void StoreWorkflowTrigger(WorkflowTrigger wft) { _triggers.CreateNew(wft); }