public async Task GetActiveTerm() { var termMgr = new TermManager(); var termList = await termMgr.GetTerms(null); // There will always only be just one active term this.ActiveTerm = termList.FirstOrDefault(x => x.IsActive); }
public async Task GetTerms() { this.TermList.Clear(); var termMgr = new TermManager(); var termList = await termMgr.GetTerms(null); foreach (var term in termList) { this.TermList.Add(term); } this.IsBusy = false; }