Exemplo n.º 1
0
 public IActionResult DeleteConfirm(int id, [FromServices] IDrivesService drivesService)
 {
     try
     {
         drivesService.Delete(id);
         return(Json(new { success = "true", message = "Drive successfully deleted." }));
     }
     catch (Exception ex)
     {
         return(Json(new { success = "false", message = "An error has occured." }));
     }
 }