public async Task EditAttendance() { var attendanceEditor = new AttendanceEditor(this.SelectedAttendance); var selectedAttendanceIndex = this.AttendanceList.IndexOf(this.SelectedAttendance); await this.GoToPage(attendanceEditor); attendanceEditor.Model().AttendanceSaved = async(attendance) => { this.AttendanceList.RemoveAt(selectedAttendanceIndex); this.AttendanceList.Insert(selectedAttendanceIndex, attendance); await this.ClosePage(); }; }
public async Task EditAttendance() { var attendanceEditor = new AttendanceEditor(this.SelectedAttendance); await this.GoToPage(attendanceEditor); }