public ActionResult ViewPendingRequestDetails(int id)
        {
            RequestDAO requestDAO = new RequestDAO();

            ViewData["PendingRequests"] = requestDAO.ViewPendingRequestDetails(id);

            return(View());
        }
        public ActionResult ViewPendingRequestDetails(int id)
        {
            if (Session["delegation"].ToString() != "Yes")
            {
                return(RedirectToAction("ShowError", "Base"));
            }
            RequestDAO requestDAO = new RequestDAO();

            ViewData["PendingRequests"] = requestDAO.ViewPendingRequestDetails(id);

            return(View());
        }