private void getBooks() { //gets all books.. var repo = new LibsysRepo(); var tempBooksList = repo.GetBooks <FullBooks>(); BooksList = FullBooksModel.ConvertToObservableCollection(tempBooksList); }
/// <summary> /// Search for objects /// </summary> /// <param name="o"></param> private void SearchItems(object o) { switch (FilterTypID) { case 0: { SearchResultList = new ObservableCollection <FullBooks>((new LibsysRepo()).SearchAllItemBook(SearchKey)); BooksList = FullBooksModel.ConvertToObservableCollection(SearchResultList); } break; } }