Exemplo n.º 1
0
        protected async Task <List <int> > FetchComplianceYearsForAatfReturns()
        {
            var request = new GetAatfReturnsActiveComplianceYears();

            using (var client = apiClient())
            {
                var items = await client.SendAsync(User.GetAccessToken(), request);

                return(items);
            }
        }
        public async Task <List <int> > HandleAsync(GetAatfReturnsActiveComplianceYears message)
        {
            authorization.EnsureCanAccessInternalArea();

            return(await dataAccess.Get());
        }