Exemplo n.º 1
0
 public IActionResult RsvpForm(GuestResponse guestResponse)
 {
     if (ModelState.IsValid)
     {
         FakeDB.AddResponse(guestResponse);
         return(View("Thanks", guestResponse)); // Thanks.cshtml
     }
     else
     {
         return(View());
     }
 }