public ActionResult DeleteNotifications(NotificationsModel notification) { if (Convert.ToString(Session["key"]) != "admin") { return(RedirectToAction("Login", "Home")); } Admin_Api adminApi = new Admin_Api(); var model = adminApi.DeleteNotifications(notification); return(View("~/Views/Administrator/AdminManageNotifications.cshtml", model)); }