Ejemplo n.º 1
0
        public async Task <IHttpActionResult> PutWorkflow(string id, Workflow workflow)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != workflow.WorkflowId)
            {
                return(BadRequest());
            }

            workflowService.Update(workflow);
            workflowService.CommitAsync();

            return(StatusCode(HttpStatusCode.NoContent));
        }