CapRaffle.Domain.Model.UserEvent.CreateUserEvent C# (CSharp) Method

CreateUserEvent() public static method

Create a new UserEvent object.
public static CreateUserEvent ( global userEmail, global eventId, global numberOfSpots, global acceptLessSpots ) : UserEvent
userEmail global Initial value of the UserEmail property.
eventId global Initial value of the EventId property.
numberOfSpots global Initial value of the NumberOfSpots property.
acceptLessSpots global Initial value of the AcceptLessSpots property.
return UserEvent
        public static UserEvent CreateUserEvent(global::System.String userEmail, global::System.Int32 eventId, global::System.Int32 numberOfSpots, global::System.Boolean acceptLessSpots)
        {
            UserEvent userEvent = new UserEvent();
            userEvent.UserEmail = userEmail;
            userEvent.EventId = eventId;
            userEvent.NumberOfSpots = numberOfSpots;
            userEvent.AcceptLessSpots = acceptLessSpots;
            return userEvent;
        }