Example #1
0
        void loadRecentUploadBook()
        {
            object obj = Session["currentUser"];

            if (obj != null)
            {
                CurrentUser = obj as User;
                BookDAO bookDao = new BookDAO();
                RecentUploadBook = bookDao.GetLatestUploadBooks(CurrentUser.Id, 1)[0];
                totalBooks       = bookDao.CountNumberUploadedBook(CurrentUser.Id);

                StarList = CurrentUser.GetStarFilledArray();
            }
        }