public IActionResult Put(int id, [FromBody, Required] ValueDto value) { try { value = _valueLogic.Update(id, value); return(Ok(value)); } catch (NotFoundException) { return(NotFound()); } catch (Exception ex) { return(BadRequest()); } }
public IActionResult Put(int id, [FromBody, Required] ValueDto value) { value = _valueLogic.Update(id, value); return(Ok(value)); }