e.g. 3.111 Adding an Action Method to Support POST Requests
parent
0a54588472
commit
a97e2ae35a
|
@ -27,9 +27,17 @@ namespace PartyInvites.Controllers
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
public ActionResult RsvpForm()
|
public ActionResult RsvpForm()
|
||||||
{
|
{
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
public ActionResult RsvpFrom()
|
||||||
|
{
|
||||||
|
// TODO: Email guestResponse to the part organizer
|
||||||
|
return View("Thanks", guestResponse);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue