Exemple #1
0
 private void UpdateRsvp(MeetupRSVP meetupRSVP, RSVP currentRsvp)
 {
     if (currentRsvp.Guests == meetupRSVP.guests)
     {
         return;
     }
     currentRsvp.Guests = meetupRSVP.guests;
 }
Exemple #2
0
        public void AddRSVP(MeetupRSVP meetupRsvp, UserAccount user, Occasion occasion)
        {
            var rsvp = new RSVP {
                Guests = meetupRsvp.guests, MeetUpId = meetupRsvp.rsvp_id, UserId = user.Id
            };

            occasion.RSVP.Add(rsvp);
            return;
        }
Exemple #3
0
        public void CreateRsvp(MeetupRSVP meetupRsvp, Occasion occasion)
        {
            var user = GetUser(meetupRsvp.member.member_id);

            if (user == null)
            {
                return;                 // should never happen but better safe.
            }
            AddRSVP(meetupRsvp, user, occasion);
        }