public async Task <IActionResult> DeleteConfirmed(int id) { try { await _notify.DeleteNotification(id); return(RedirectToAction(nameof(Index))); } catch { return(View(nameof(HomeController.Error))); } }
public async Task <IActionResult> DeleteConfirmed(int id) { try { await _notify.DeleteNotification(id); return(RedirectToAction(nameof(Index))); } catch { return(View(nameof(HomeController.Error))); } }