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); }
public async Task <CustomerAccount> GetCustomerAccount(int accountId) { var customerAccountResource = new CustomerAccountResource(_apiContext); return(await customerAccountResource.GetAccountAsync(accountId)); }