Пример #1
0
 public ActionResult Delete(Guid id)
 {
     if (!_reasonService.ExistsReason(id))
     {
         return(NotFound(new ErrorData(StatusCodes.Status404NotFound, "Not found", null)));
     }
     _reasonService.DeleteReason(id);
     return(NoContent());
 }