CapRaffle.Domain.Raffle.DrawWinners.PopulateUserRaffleTicketsList C# (CSharp) 메소드

PopulateUserRaffleTicketsList() 개인적인 메소드

private PopulateUserRaffleTicketsList ( ) : void
리턴 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);
                }
            }
        }