public async Task <IActionResult> Delete(DashboardListViewModel model) { try { await _dashboardContentService.RemoveAsync(model.DashboardContentId); ShowAlertSuccess("Dashboard content was successfully deleted!"); } catch (GraException gex) { ShowAlertDanger("Unable to delete content: ", gex); } return(RedirectToAction("Index", new { page = model.PaginateModel.CurrentPage })); }