Пример #1
0
 public IActionResult Delete([FromRoute] int id)
 {
     try
     {
         service.DeleteById(id);
         return(NoContent());
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }