public ActionResult ViewAllBooks() { using (BooksDAL svBooks = new BooksDAL()) { var results = svBooks.GetBooksWithAuthors().ToList(); return(View(results)); } }