async void DoOpenFavs(lo_by_circle_wrapper learningobj__) { //await _mLearningService.OpenLearningObject(learningobj.lo.id,learningobj.lo.url_package,UserID); try { //Download all the data of the selected LO foreach (var item in LearningOjectsList) { var list = await _mLearningService.GetPagesByIDS(null); //Page result = await this._mLearningService.GetFirstSlidePageByLOSection(item.lo.id); if (list != null) { Debug.WriteLine("indexList", "result...: " + list.Count); var indexTmp = new Dictionary <int, IList <Page> >(); foreach (var page in list) { foreach (var bookmark in bookmarks) { if (bookmark == page.id) { IList <Page> resultTmp; if (!indexTmp.TryGetValue((int)page.LOsection_id, out resultTmp)) { var ls = new List <Page>(); ls.Add(page); indexTmp[(int)page.LOsection_id] = ls; } else { resultTmp.Add(page); } } } } ContentByUnit = new ObservableDictionary <int, IList <Page> >(indexTmp); } } } catch (WebException e) { ConnectionOK = false; } catch (HttpRequestException e) { ConnectionOK = false; } catch (MobileServiceInvalidOperationException e) { Mvx.Trace("MobileServiceInvalidOperationException " + e.Message); OperationOK = false; } }