Example #1
0
 async Task <IReadOnlyList <ContributionCategory> > GetRemoteContributionAreasAsync()
 {
     try
     {
         return(await api.GetContributionAreas());
     }
     catch (ApiException e)
     {
         HandleApiException(e);
         return(null);
     }
     catch (Exception e)
     {
         analyticsService.Report(e);
         return(null);
     }
 }
Example #2
0
        async Task <IReadOnlyList <ContributionCategory> > GetRemoteContributionAreasAsync()
        {
            try
            {
                return(await api.GetContributionAreas());

                //var j = JsonConvert.DeserializeObject<IReadOnlyList<ContributionCategory>>(data);
                //return j;
            }
            catch (ApiException e)
            {
                HandleApiException(e);
                return(null);
            }
            catch (Exception e)
            {
                analyticsService.Report(e);
                return(null);
            }
        }