public async Task <IActionResult> Index()
        {
            ADTeam5User user = await _userManager.GetUserAsync(HttpContext.User);

            List <string> identity = userCheck.checkUserIdentityAsync(user);
            int           userID   = user.WorkID;

            //Generate disbursement list
            List <Models.Department> dList       = _context.Department.ToList();
            List <string>            depCodeList = new List <string>();

            foreach (Models.Department d in dList)
            {
                depCodeList.Add(d.DepartmentCode);
            }

            for (int i = 0; i < depCodeList.Count(); i++)
            {
                List <RecordDetails> rd = b.GenerateRecordDetailsOfDisbursementList(depCodeList[i]);
            }

            List <StationeryRetrievalList> result = b.GetStationeryRetrievalLists();

            return(View(result));
        }
        // GET: StationeryRetrievalList
        public async Task <IActionResult> Index()
        {
            //Generate disbursement list
            List <Models.Department> dList       = _context.Department.ToList();
            List <string>            depCodeList = new List <string>();

            foreach (Models.Department d in dList)
            {
                depCodeList.Add(d.DepartmentCode);
            }

            for (int i = 0; i < depCodeList.Count(); i++)
            {
                //List<RecordDetails> rd = b.GenerateDisbursementListDetails(depCodeList[i]);
                List <RecordDetails> rd = b.GenerateDisbursementListDetails("ENGL");
            }

            List <StationeryRetrievalList> result = b.GetStationeryRetrievalLists();

            return(View(result));
        }