public ActionResult PalindromeVerdict(PalindromeRequest input) { if (ModelState.IsValid) { var model = new PalindromeResult(); model.Verdict = new PalindromeDetector().ReverseAndCheck(input.UserChoice); return View(model); } return View("PalindromeQuery",input); }
public ActionResult PalindromeQuery() { var model = new PalindromeRequest(); return View(model); }