private async Task ExecuteShowDetailCommand(AbsenceRealm absence) { AbsencesViewModel absencesViewModel = this; absencesViewModel._singleNavigation.DisableNavigation(); int num = await absencesViewModel._navigationService.Navigate <AbsenceDetailViewModel, AbsenceRealm>((M1)absence, (IMvxBundle)null, new CancellationToken()) ? 1 : 0; }
public async Task AddOrUpdateAsync(AbsenceRealm absence, Action <AbsenceRealm> action) { await this._absenceDbRepository.AddOrUpdateAsync(absence, action); }
public void AddOrUpdate(AbsenceRealm absence, Action <AbsenceRealm> action) { this._absenceDbRepository.AddOrUpdate(absence, 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()); } }