Esempio n. 1
0
 public IActionResult DeleteTable(string id)
 {
     try
     {
         if (_tablesService.DeleteTable(id))
         {
             return(NoContent());
         }
         return(NotFound("Table with id not found"));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
     }
     ;
 }