public ViewResult RsvpForm(GuestResponse guestResponse) { if (ModelState.IsValid) { PartyRepository.AddResponse(guestResponse); return(View("Thanks", guestResponse)); } else { // there is a validation error return(View()); } }