public ICollection <Event> RSVP(string name, string friendlyName) { return(EventScope.Start(() => { if (IsUserRegistered(name)) { return; } var RSVPedEvent = new RSVPed { Name = name, FriendlyName = friendlyName, DinnerId = DinnerID }; RaiseAndApply(RSVPedEvent); })); }
private void RaiseEvent(Event e) { EventScope.Raise(e); _currentEvent++; }