Esempio n. 1
0
 public IActionResult DeleteProject(int id)
 {
     try
     {
         _projectRepository.DeleteProject(id);
         return(Ok());
     }
     catch (NotFoundException ex)
     {
         return(NotFound(new { message = ex.Message }));
     }
     catch (Exception ex)
     {
         return(BadRequest(new { message = ex.Message }));
     }
 }