public ActionResult RegisterClient(Client client) { if (ModelState.IsValid) { ClarityConferenceDB db = new ClarityConferenceDB(); db.clients.Add(client); db.SaveChanges(); return(RedirectToAction("Show", "Register")); } return(RedirectToAction("Register", "Register")); }
public ActionResult RegisterAttendee(Attendee attendee) { if (ModelState.IsValid) { ClarityConferenceDB db = new ClarityConferenceDB(); db.attendees.Add(attendee); db.SaveChanges(); return(RedirectToAction("Show", "Register")); } return(RedirectToAction("Register", "Register")); }