예제 #1
0
 public void RSVP(IRsvp rsvp)
 {
     RSVPDate            = rsvp.Date;
     RSVPIpAddress       = rsvp.IpAddress;
     DietaryRequirements = rsvp.DietaryRequirements;
     Attending           = rsvp.Attending;
 }
예제 #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();
        }
예제 #3
0
 public RsvpController(IRsvp rsvp)
 {
     this.rsvpBusiness = rsvp;
 }