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