public ActionResult ManageNotification(NotificationsModel mangeNotifications) { if (Convert.ToString(Session["key"]) != "admin") { return(RedirectToAction("Login", "Home")); } Admin_Api adminApi = new Admin_Api(); mangeNotifications.AdminID = (int)Session["UserId"]; //6003; var notificationsModels = adminApi.ManageNotifications(mangeNotifications); return(View("~/Views/Administrator/AdminManageNotifications.cshtml", notificationsModels)); }