public async Task <IList <UKCompetentAuthorityData> > HandleAsync(GetUKCompetentAuthorities message)
        {
            var ukcompetentauthorities =
                await context.UKCompetentAuthorities.OrderBy(c => c.Abbreviation).ToArrayAsync();

            return(ukcompetentauthorities.Select(mapper.Map).ToArray());
        }
 private async Task<IList<UKCompetentAuthorityData>> FetchAuthorities()
 {
     var request = new GetUKCompetentAuthorities();
     using (var client = apiClient())
     {
         return await client.SendAsync(User.GetAccessToken(), request);
     }
 }