Exemplo n.º 1
0
        public ActionResult Index()
        {
            var category        = "Novel";
            var booksByCategory = BookDao.GetBooksByCategory(category);

            ViewBag.booksByCategory = booksByCategory;


            var newAddedBooks = BookDao.GetTop10NewAddedBooks();

            ViewBag.newAddedBooks = newAddedBooks;
            return(View());
        }