public List <BookEnt> GetBookByName(string nameBook) { var books = new List <BookEnt>(); using (var data = new BookData()) { books = data.GetBookByName(nameBook); } return(books); }