private void UpdateRsvp(MeetupRSVP meetupRSVP, RSVP currentRsvp) { if (currentRsvp.Guests == meetupRSVP.guests) { return; } currentRsvp.Guests = meetupRSVP.guests; }
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; }
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); }