Exemple #1
0
 private Task <IEnumerable <IBookDTO> > CheckAvailability(Cart cart, string accessToken)
 {
     return(Task.Run(() =>
                     ResponseReader.GetBooks(RequestToServer.CheckBooksAvailability(cart, accessToken))
                     ));
 }
Exemple #2
0
 // return the list of books matching the search string async
 public Task <IEnumerable <IBookDTO> > GetBooksAsync(string searchString = "")
 {
     return(Task.Run(() =>
                     ResponseReader.GetBooks(RequestToServer.RequestBooks(searchString))
                     ));
 }