Ejemplo n.º 1
0
        public async Task <CustomerAccount> GetCustomerAccount(int tenantId, int?siteId,
                                                               int?masterCatalogId, int accountId)
        {
            _apiContext = new ApiContext(tenantId, siteId, masterCatalogId);

            var customerAccountResource = new CustomerAccountResource(_apiContext);
            var account = await customerAccountResource.GetAccountAsync(accountId);

            return(account);
        }
Ejemplo n.º 2
0
        public async Task <CustomerAccount> GetCustomerAccount(int accountId)
        {
            var customerAccountResource = new CustomerAccountResource(_apiContext);

            return(await customerAccountResource.GetAccountAsync(accountId));
        }