Example #1
0
 public void RSVP(IRsvp rsvp)
 {
     RSVPDate            = rsvp.Date;
     RSVPIpAddress       = rsvp.IpAddress;
     DietaryRequirements = rsvp.DietaryRequirements;
     Attending           = rsvp.Attending;
 }
Example #2
0
        public void Rsvp(IRsvp rsvp)
        {
            var db = new TooksCmsDAL();

            var f = db.FoodChoices.Add(FoodChoice.CreateFoodChoice(rsvp.FoodChoice));

            var g = db.Guest1.Single(_g => _g.GuestId == rsvp.GuestId);

            g.RSVP(rsvp);

            db.SaveChanges();
        }
Example #3
0
 public RsvpController(IRsvp rsvp)
 {
     this.rsvpBusiness = rsvp;
 }