Ejemplo n.º 1
0
        public async void LoadEnrolments(int studentId)
        {
            if (DesignerProperties.GetIsInDesignMode(
                new System.Windows.DependencyObject())) return;

            _repo = new EnrolmentRepo();
            Enrolments = new ObservableCollection<Enrolment>(await _repo.GetEnrolmentsAsync(studentId));
        }
Ejemplo n.º 2
0
        public async void LoadEnrolments(int studentId)
        {
            if (DesignerProperties.GetIsInDesignMode(
                    new System.Windows.DependencyObject()))
            {
                return;
            }

            _repo      = new EnrolmentRepo();
            Enrolments = new ObservableCollection <Enrolment>(await _repo.GetEnrolmentsAsync(studentId));
        }