CapRaffle.Domain.Raffle.DrawWinners.PopulateUserRaffleTicketsList C# (CSharp) Method

PopulateUserRaffleTicketsList() private method

private PopulateUserRaffleTicketsList ( ) : void
return void
        private void PopulateUserRaffleTicketsList()
        {
            if (UserTicketsList.Count() == 0)
            {
                List<UserEvent> eventParticipants = EventParticipantsForEvent().ToList<UserEvent>();
                foreach (UserEvent ue in eventParticipants)
                {
                    UserTickets urt = new UserTickets(ue.UserEmail, 100);
                    UserTicketsList.Add(urt);
                }
            }
        }