CapRaffle.PopulateDatabase.Winner.CreateWinner C# (CSharp) Method

CreateWinner() public static method

Create a new Winner object.
public static CreateWinner ( global eventId, global userEmail, global numberOfSpotsWon, global catogoryId ) : Winner
eventId global Initial value of the EventId property.
userEmail global Initial value of the UserEmail property.
numberOfSpotsWon global Initial value of the NumberOfSpotsWon property.
catogoryId global Initial value of the CatogoryId property.
return Winner
        public static Winner CreateWinner(global::System.Int32 eventId, global::System.String userEmail, global::System.Int32 numberOfSpotsWon, global::System.Int32 catogoryId)
        {
            Winner winner = new Winner();
            winner.EventId = eventId;
            winner.UserEmail = userEmail;
            winner.NumberOfSpotsWon = numberOfSpotsWon;
            winner.CatogoryId = catogoryId;
            return winner;
        }