public ActionResult RegisterMe(GuestResponse gr) { //this guest response can then be appended to the database if (ModelState.IsValid ==true) { return View("Thanks", gr); } else { return View(); } }
public ViewResult RsvpForm(GuestResponse guestResponse) { if (ModelState.IsValid) { // TODO: Email response to the party organizer return View("Thanks", guestResponse); } else { // there is a validation error return View(); } }
public void AddResponse(GuestResponse response) { responses.Add(response); }
public void Add(GuestResponse aGuestResponse) { _Storage.Add(aGuestResponse); }
[HttpPost] // to receive form data, POST public ViewResult RsvpForm(GuestResponse response) { return View("Thanks"); }