public Book GetBookById(int id) { var book = new Book(); using (var data = new BookData()) { book = data.GetBookById(id); } return(book); }