private Task <IEnumerable <IBookDTO> > CheckAvailability(Cart cart, string accessToken) { return(Task.Run(() => ResponseReader.GetBooks(RequestToServer.CheckBooksAvailability(cart, accessToken)) )); }
// 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)) )); }