示例#1
0
 public ViewResult RsvpForm(GuestRespones guestrespone)
 {
     if (ModelState.IsValid)
     {
         return(View("Thanks", guestrespone));
     }
     else
     {
         return(View());
     }
 }
 public ViewResult RsvpForm(GuestRespones guestResponse)
 {
     if (ModelState.IsValid)
     {
         // TODO: Email response to the party organizer
         return(View("Thanks", guestResponse));
     }
     else
     {
         // there is a validation error
         return(View());
     }
 }