public IActionResult Put(string id, [FromBody] Value valueIn) { var value = _valueService.Get(id); if (value == null) { return(NotFound()); } _valueService.Update(id, valueIn); return(NoContent()); }
public IActionResult Update(long id, [FromBody] ValueRequest request) { Value value = valueService.Get(id); if (value == null) { return(NotFound()); } valueService.Update(id, value); return(NoContent()); }