public ActionResult PendingSourceReq()
        {
            List <SourceRequestViewModel> _req = new List <SourceRequestViewModel>();
            var    principal = (ClaimsIdentity)User.Identity;
            string UserId    = principal.FindFirst(ClaimTypes.Actor).Value;
            string UserRole  = principal.FindFirst(ClaimTypes.Role).Value;

            if (UserRole == "Administrator")
            {
                _req = RetrieveRequest.GetNewRequestFromHODToProcurementBuyer();
            }
            else
            {
                _req = RetrieveRequest._GetNewRequestFromHODToProcurementBuyer(null, UserId);
            }
            return(View(_req));
        }
        public JsonResult CountPendingSourceReq()
        {
            //later check for request by userid on the request table
            List <SourceRequestViewModel> _req = new List <SourceRequestViewModel>();
            var    principal = (ClaimsIdentity)User.Identity;
            string UserId    = principal.FindFirst(ClaimTypes.Actor).Value;
            string UserRole  = principal.FindFirst(ClaimTypes.Role).Value;

            if (UserRole == "Administrator")
            {
                _req = RetrieveRequest.GetNewRequestFromHODToProcurementBuyer();
            }
            else
            {
                _req = RetrieveRequest._GetNewRequestFromHODToProcurementBuyer(null, UserId);
            }
            decimal Req = _req != null?_req.Count() : 0;

            string _count = Convert.ToString(Req);

            return(Json(_count, JsonRequestBehavior.AllowGet));
        }
        public ActionResult PendingSourceReqPopUp(string ItemId)
        {
            var RequestHistory = RetrieveRequest.GetNewRequestFromHODToProcurementBuyer(ItemId);

            return(PartialView(RequestHistory));
        }