// GET: Publisher/Details/5 public ActionResult Details(int id) { Publisher publisher = null; IEnumerable <Book> books = null; using (var db = new BookStoreDb()) { publisher = db.Publishers.Find(id); books = db.GetPublisherBooks(publisher); } var model = new PublisherBooks(publisher, books); return(View(model)); }