public ActionResult Details(int id) { using (BooksDAL svBooks = new BooksDAL()) { var result = svBooks.GetDetailWithAuthors(id); return(View(result)); } }