private async Task ExecuteShowDetailCommand(EvaluationRealm evaluation) { EvaluationsViewModel evaluationsViewModel = this; evaluationsViewModel._singleNavigation.DisableNavigation(); int num = await evaluationsViewModel._navigationService.Navigate <EvaluationDetailViewModel, EvaluationRealm>((M1)evaluation, (IMvxBundle)null, new CancellationToken()) ? 1 : 0; }
public async Task AddOrUpdateAsync( EvaluationRealm evaluation, Action <EvaluationRealm> action = null) { await this._evaluationRepository.AddOrUpdateAsync(evaluation, action); }
private void ShowDetail(ListItem x) { this._singleNavigation.DisableNavigation(); if (x.Type == typeof(eKreta.Mobile.Core.Models.Evaluation)) { EvaluationRealm evaluationRealm = this._evaluationDbDataService.Get(x.StringId); if (evaluationRealm == null) { return; } this._navigationService.Navigate <EvaluationDetailViewModel, EvaluationRealm>((M1)evaluationRealm, (IMvxBundle)null, new CancellationToken()); } else if (x.Type == typeof(Ekreta.Mobile.Core.Models.Absence)) { AbsenceRealm absenceRealm = this._absenceDbDataService.Get(x.Id); if (absenceRealm == null) { return; } this._navigationService.Navigate <AbsenceDetailViewModel, AbsenceRealm>((M1)absenceRealm, (IMvxBundle)null, new CancellationToken()); } else if (x.Type == typeof(Ekreta.Mobile.Core.Models.Note)) { NoteRealm noteRealm = this._noteDbDataService.Get(this.ActiveProfile.RolelessId, x.Id); if (noteRealm == null) { return; } this._navigationService.Navigate <NoteDetailViewModel, NoteRealm>((M1)noteRealm, (IMvxBundle)null, new CancellationToken()); } else if (x.Type == typeof(Ekreta.Mobile.Core.Models.Lesson)) { LessonRealm teacherHomeworkId = this._lessonDbDataService.GetByTeacherHomeworkId(x.Id); if (teacherHomeworkId == null) { return; } if (teacherHomeworkId.IsTanuloHaziFeladatEnabled) { this._navigationService.Navigate <HomeWorkStudentDetailViewModel, LessonRealm>((M1)teacherHomeworkId, (IMvxBundle)null, new CancellationToken()); } else { this._navigationService.Navigate <HomeWorkDetailViewModel, LessonRealm>((M1)teacherHomeworkId, (IMvxBundle)null, new CancellationToken()); } } else if (x.Type == typeof(Event)) { Event @event = this._eventDataService.Get(x.StringId); if (@event == null) { return; } this._navigationService.Navigate <EventDetailViewModel, Event>((M1)@event, (IMvxBundle)null, new CancellationToken()); } else { if (!(x.Type == typeof(Ekreta.Mobile.Core.Models.Exam))) { return; } ExamRealm examRealm = this._examDbDataService.Get(x.StringId); if (examRealm == null) { return; } this._navigationService.Navigate <ExamsDetailViewModel, ExamRealm>((M1)examRealm, (IMvxBundle)null, new CancellationToken()); } }
public void AddOrUpdate(EvaluationRealm evaluation, Action <EvaluationRealm> action = null) { this._evaluationRepository.AddOrUpdate(evaluation, action); }