Esempio n. 1
0
 public IActionResult Delete(int id)
 {
     try
     {
         _debtsService.Delete(id);
         return(Ok());
     }
     catch (NotFoundException)
     {
         return(NotFound());
     }
     catch (ForbiddenException)
     {
         return(Forbid());
     }
 }