internal async Task <HyperLink[]> GetPagesAsync(string secitonId, int incidentId) { var url = string.Format("{0}/sections/{1}/pages?$filter=title eq 'Incident[{2}]'&$select=title,links", serviceBaseUrl, secitonId, incidentId); dynamic result; try { result = await HttpGetAsync(url); } catch (HttpResponseException) { return(new HyperLink[0]); } return((result.value as JArray).OfType <dynamic>() .Select(i => HyperLink.Create((string)i.title, (string)i.links.oneNoteWebUrl.href)) .ToArray()); }