// GET: Author public ActionResult Index(Author author) { GenreBLL genreBLL = new GenreBLL(); ViewBag.Genre = genreBLL.List(); return(View(authorBLL.IList())); }
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()); }