public Task <HttpResponseMessage> Put([FromBody] dynamic body) { var service = _service.GetOneByName((string)body.name); if (service == null) { return(CreateResponse(HttpStatusCode.Ambiguous, service)); } var commandService = new UpdateServiceCommand( id: Guid.Parse((string)body.id), name: (string)body.name, value: (float)body.value, description: (string)body.description ); service = _service.Update(commandService); return(CreateResponse(HttpStatusCode.Created, service)); }