Ejemplo n.º 1
0
 public IActionResult RsvpForm(GuestResponse guestResponse)
 {
     if (ModelState.IsValid)
     {
         FakeDb.AddResponse(guestResponse);
         return(View("Thanks", guestResponse)); // Thanks.cshtml
     }
     else
     {
         return(View());
     }
 }
Ejemplo n.º 2
0
 public IActionResult Edit(UserResponse r)
 {
     if (ModelState.IsValid)
     {
         FakeDb.AddResponse(r);
         return(View("Details", r));
     }
     else
     {
         return(View(r));
     }
 }