コード例 #1
0
        // GET: Author
        public ActionResult Index(Author author)
        {
            GenreBLL genreBLL = new GenreBLL();

            ViewBag.Genre = genreBLL.List();

            return(View(authorBLL.IList()));
        }
コード例 #2
0
        public ActionResult Index()
        {
            AuthorBLL author = new AuthorBLL();
            BookBLL   book   = new BookBLL();
            GenreBLL  genre  = new GenreBLL();

            ViewBag.ContAuthor = author.IList().Count();
            ViewBag.ContGenre  = genre.List().Count();
            ViewBag.ContBook   = book.List().Count();

            return(View());
        }