Ejemplo n.º 1
0
        //
        // GET: /Graduation/

        public ActionResult RSVP(string Id)
        {
            Attendee RsvpAttendee = new Attendee();

            using (GraduationEntities ents = new GraduationEntities())
            {
                RsvpAttendee = ents.Attendees.Where(x => x.UID == Id).Single();
            }
            return(View("Index", RsvpAttendee));
        }
Ejemplo n.º 2
0
        public string GetData()
        {
            string data;

            using (GraduationEntities ents = new GraduationEntities())
            {
                data = JsonConvert.SerializeObject(ents.Details.ToArray());
            }
            return(data);
        }
Ejemplo n.º 3
0
        public void SubmitRsvp(RSVP RsvpData)
        {
            Attendee person = new Attendee();

            using (GraduationEntities ents = new GraduationEntities())
            {
                ents.RSVPs.Add(RsvpData);
                person = ents.Attendees.Where(x => x.Id == RsvpData.AttendeeId).Single();
                ents.SaveChanges();
            }
        }