Beispiel #1
0
        public ValueTask <Attendance> RemoveAttendanceByIdAsync(Guid attendanceId) =>
        TryCatch(async() =>
        {
            ValidateAttendanceId(attendanceId);
            Attendance maybeAttendance = await this.storageBroker.SelectAttendanceByIdAsync(attendanceId);
            ValidateStorageAttendance(maybeAttendance, attendanceId);

            return(await storageBroker.DeleteAttendanceAsync(maybeAttendance));
        });