Exemplo n.º 1
0
        public async Task <List <IconDto> > GetAllActuallIMGAsync()
        {
            var books = await _bestSellersRepository.GetActuallBestsellersAsync();

            books = books.Count > 0 ? books.OrderByDescending(x => x.countValue).Take(10).ToList() : books;
            return(books);
        }
        public async Task <IActionResult> GetBestsellers()
        {
            var books = await _bookRepository.GetActuallBestsellersAsync();

            //Console.WriteLine("------------getting books---------------");
            //Console.WriteLine(books[0].title);
            return(Json(books));
        }