private async Task AddCredits()
        {
            var viewModel = new CreditDetailViewModel(new CreditTableViewModel(), _creditStore, _pageService);

            viewModel.CreditAdded += (source, credit) =>
            {
                Credits.Add(new CreditTableViewModel(credit));
            };

            await _pageService.PushModalAsync(new CreditDetailPage(viewModel));
        }
        private async Task SelectCredits(CreditTableViewModel credit)
        {
            if (credit == null)
            {
                return;
            }

            SelectedCredit = null;

            var viewModel = new CreditDetailViewModel(credit, _creditStore, _pageService);

            viewModel.CreditUpdated += (source, updateCredit) =>
            {
                credit.Id            = updateCredit.id;
                credit.CreditID      = updateCredit.creditID;
                credit.ClassesWeekly = updateCredit.classesWeekly;
            };

            await _pageService.PushModalAsync(new CreditDetailPage(viewModel));
        }