public async Task <IActionResult> Index()
        {
            /// get lab lists here.
            List <LabListModel> labLists = await LabDB.GetListAsync();

            /// get item transaction log here.
            List <Log> logLists = await LogDB.GetAllAsync();

            logLists.Sort((x, y) => DateTime.Compare(y.created, x.created));

            ViewData["LabLists"] = labLists;
            ViewData["LogLists"] = logLists;

            return(View());
        }
        public async Task <IActionResult> Blacklist()
        {
            /// get item transaction log here.
            List <Log> logLists = await LogDB.GetAllAsync();

            logLists.Sort((x, y) => DateTime.Compare(y.created, x.created));

            /// get all borrowed items list.
            List <Transaction> blacklistLists = await TransactionDB.GetAllAsync();

            blacklistLists.Sort((x, y) => DateTime.Compare(x.book_date, y.book_date));

            ViewData["LogLists"]       = logLists;
            ViewData["BlacklistLists"] = blacklistLists;

            return(View());
        }