public async Task LoadSponsorsAsync() { IsBusy = true; var data = await ServiceCaller.CallService(service.GetAllSponsors); if (data.IsSuccess) { Sponsors = new ObservableCollection <Sponsor>(data.Value); } IsBusy = false; }
private async Task LoadInfoAsync() { IsBusy = true; var data = await ServiceCaller.CallService(service.GetInfo); if (data.IsSuccess) { Info = data.Value; } IsBusy = false; Refreshing = false; }
private async Task LoadEventsAsync() { IsBusy = true; var data = await ServiceCaller.CallService(service.GetAllEvents); if (data.IsSuccess) { Events = new ObservableCollection <Event>(data.Value); } IsBusy = false; Refreshing = false; }
public async Task LoadSessionsAsync() { IsBusy = true; var data = await ServiceCaller.CallService(service.GetAllSessions); if (data.IsSuccess) { Sessions = new ObservableCollection <Session>(data.Value); allSessions = new List <Session>(Sessions.ToList()); } IsBusy = false; Refreshing = false; }