public Task <string> GetToken(string email, string password) { return(Task.Run(() => ResponseReader.TokenString(RequestToServer.GetToken(email, password)) )); }
public Task <string> RegiserNewAccount(string email, string password) { return(Task.Run(() => ResponseReader.RegistrationStatus(RequestToServer.RegisterNewAccount(email, password)) )); }
public Task <OrderDetailsDTO> CreateNewOrder(Cart cart, string accessToken) { return(Task.Run(() => ResponseReader.GetOrderDetails(RequestToServer.CreateNewOrder(cart, accessToken)) )); }
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)) )); }
// return the details of one book using id public Task <IBookDTO> GetBookDetailsAsync(string id) { return(Task.Run(() => ResponseReader.GetBookDetails(RequestToServer.RequestBookDetails(id)) )); }