public IActionResult HaveYouReceivedACardPost(HaveYouReceivedACardViewModel viewModel) { viewModel.ParseAndValidateParameters(Request, m => m.HaveYouReceivedACard); if (viewModel.HasAnyErrors()) { return(View("HaveYouReceivedACard", viewModel)); } if (viewModel.HaveYouReceivedACard == HaveYouReceivedACard.CardReceived) { return(View("ServiceNotForYou")); } return(RedirectToAction("YourNameGet", "Home")); }
public IActionResult HaveYouReceivedACardGet() { var viewModel = new HaveYouReceivedACardViewModel(); return(View("HaveYouReceivedACard", viewModel)); }