Exemple #1
0
 public virtual void AddParticipant(User oUser)
 {
     if (!Participants.Contains(oUser))
     {
         Participants.Add(oUser);
         Events.DomainEvents.UserOptedInForDinnerEvent.Raise(new NerdDinnerDomain.Events.DinnerUserEventArgs { DinnerId=Id, Owner_User_id=Organizer_User_id, User_Id_Opted_In=oUser.Id });
     }
     //Raise event
 }
Exemple #2
0
 public virtual void RemoveParticipant(User oUser)
 {
     if (Participants.Contains(oUser))
         Participants.Remove(oUser);
 }