Ejemplo n.º 1
0
        public async Task LeaveAtSessionAsync(AttendeeVO attendee)
        {
            AttendeeModel attendeeModel = _attendeeConverter.Parse(attendee);

            if (!(await _attendeeRepository.FindByIdInSessionTaskAsync(attendeeModel) is AttendeeModel currentAttendee))
            {
                throw new Exception("Nao foi possivel pegar as informaçoes do participante");
            }

            await _attendeeRepository.LeaveAttendeeTaskAsync(currentAttendee);
        }