public async void buildLPSOffline() { Courses l = new Courses(); List <Models.LPDBRecord> lps = await l.CheckForLPS(); if (lps != null) { var temp = lps.OrderBy(o => o.LPTitle).ToList(); foreach (Models.LPDBRecord lp in temp) { Cards card = new Cards(); card.buildLPCard(lp.LPID, lp.LPTitle, lp.LPDescription, LP, DetailsClicked); } } }