public async Task <ActionResult> DeletePresentation(int id) { try { var deleted = await _presentationManager.DeletePresentationAsync(id); if (deleted) { return(NoContent()); } return(NotFound()); } catch (Exception e) { Console.WriteLine(e); return(Problem("Failed to delete the presentation")); } }