Example #1
0
 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());
     }
 }
Example #2
0
 public IActionResult Put(int id, [FromBody, Required] ValueDto value)
 {
     value = _valueLogic.Update(id, value);
     return(Ok(value));
 }