Example #1
0
        public void Search(string input, SearchBookDataProvider searchBookData)
        {
            searchBookData.ResetData();

            if (string.IsNullOrEmpty(input))
            {
                searchBookData.missingText = true;
            }
        }
Example #2
0
 public void SelectBook(string isbn, User user, SearchBookDataProvider searchBookData)
 {
     SQLConnection.AddISBNToHistory(user.Id, isbn);
     searchBookData.bookData = SQLConnection.GetBookByISBNInDataView(isbn);
 }