示例#1
0
        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);
        }
示例#2
0
        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;
        }