예제 #1
0
        private async Task <int> GetMaxPage(int PageSize)
        {
            int numProducts = await ClothingDB.GetNumClothing(_context);

            return(Convert.ToInt32(
                       Math.Ceiling((double)numProducts / PageSize)));
        }