public UserEvent(User user, Event @event) { UserId = user?.Id ?? throw new ArgumentNullException(nameof(user)); User = user; EventId = @event?.Id ?? throw new ArgumentNullException(nameof(@event)); Event = @event; Status = UserEventStatus.Invited; }
public void SetStatus(UserEventStatus status) { Status = status; }