public async Task <string> PostCustomers(HttpContext httpContext, Customer customer) { var token = await httpContext.GetTokenAsync("access_token"); var client = new ExactOnlineClient(); await client.PostRentMagicCustomerAsync("", token, customer); return(""); }
public async Task <List <Customer> > GetCustomers(HttpContext httpcontext) { var token = await httpcontext.GetTokenAsync("access_token"); var client = new ExactOnlineClient(); var customers = await client.GetExactOnlineCustomerAsync("", token); //await RefreshAccessToken(httpcontext, refreshTokenClient); return(customers); }