public Task <HttpResponseMessage> Put(int id, [FromBody] dynamic body) { var command = new UpdateProductInfoCommand( id: id, title: (string)body.title, category: (int)body.category, description: (string)body.description ); var product = _service.UpdateBasicInformation(command); return(CreateResponse(HttpStatusCode.OK, product)); }