private async Task <IList <TimeSlot> > getNextTwoSlotsAsync() { return((from slot in await _campService.ListSessions() where slot.EndTime >= DateTime.UtcNow orderby slot.StartTime select slot).Take(2).ToList()); }
public async Task Init() { bool successful = await SafeOperation( TaskEx.Run(async() => TimeSlots = await _campService.ListSessions())); FinishedLoading(successful); }
public async Task Init() { bool successful = await SafeOperation( TaskEx.Run(async() => { await _campService.ListSessions(); reinitializeChildViewModels(); })); FinishedLoading(successful); }