Beispiel #1
0
        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("");
        }
Beispiel #2
0
        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);
        }