コード例 #1
0
        public async Task RemoveUserAttendeesAsync(int id)
        {
            var attendees = await _attendeeRepository.FindByAsync(a => a.UserId == id);

            foreach (var attendee in attendees)
            {
                _attendeeRepository.Delete(attendee);
            }
        }