e.g. 3.12 The Thanks View
parent
a97e2ae35a
commit
c53172cfb7
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
|
using PartyInvites.Models;
|
||||||
|
|
||||||
namespace PartyInvites.Controllers
|
namespace PartyInvites.Controllers
|
||||||
{
|
{
|
||||||
|
@ -34,7 +35,7 @@ namespace PartyInvites.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public ActionResult RsvpFrom()
|
public ActionResult RsvpForm(GuestResponse guestResponse)
|
||||||
{
|
{
|
||||||
// TODO: Email guestResponse to the part organizer
|
// TODO: Email guestResponse to the part organizer
|
||||||
return View("Thanks" ,guestResponse);
|
return View("Thanks" ,guestResponse);
|
||||||
|
|
|
@ -146,6 +146,7 @@
|
||||||
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
||||||
<Content Include="Scripts\modernizr-2.8.3.js" />
|
<Content Include="Scripts\modernizr-2.8.3.js" />
|
||||||
<Content Include="Views\Home\RsvpForm.cshtml" />
|
<Content Include="Views\Home\RsvpForm.cshtml" />
|
||||||
|
<Content Include="Views\Home\Thanks.cshtml" />
|
||||||
<Content Include="Web.config" />
|
<Content Include="Web.config" />
|
||||||
<Content Include="Web.Debug.config">
|
<Content Include="Web.Debug.config">
|
||||||
<DependentUpon>Web.config</DependentUpon>
|
<DependentUpon>Web.config</DependentUpon>
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
@model PartyInvites.Models.GuestResponse
|
||||||
|
|
||||||
|
@{
|
||||||
|
Layout = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Thanks</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<h1>Thank you, @Model.Name</h1>
|
||||||
|
@if (Model.WillAttend == true)
|
||||||
|
{
|
||||||
|
@:It's great that you're coming. The drinks are already in the fridge
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
@:Sorry to hear that you can't make it, but thanks for letting us know
|
||||||
|
}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue