public IEnumerable<RSVP> GetAllRsvps() { using (var context = new WeddingContext()) { return context.Rsvps.ToList(); } }
public void AddRsvpItem(RSVP rsvp) { using (var context = new WeddingContext()) { context.Rsvps.Add(rsvp); context.SaveChanges(); } }