Ejemplo n.º 1
0
 public IActionResult Delete(String id)
 {
     try
     {
         FileSystemProvider.DeleteFI(id);
     }
     catch (FileNotFoundException)
     {
         return(NotFound());
     }
     catch (UnauthorizedAccessException)
     {
         return(Forbid());
     }
     catch (IOException) {
         return(BadRequest());
     }
     return(Ok());
 }