public ActionResult Index() { var bookRepository = new BookRepository(); IEnumerable <Category> model = bookRepository.AllCategories(); return(View(model)); }