public ActionResult PalindromeInput(PalidromeFinderModel request) { if (ModelState.IsValid) { var palinFind = new PalindromeCalculator(); var palinData = new PalindromFinderRequest(); palinData.Word = request.Word; var result = palinFind.FindPalindrome(palinData); return(View("PalindromeOutput", result)); } else { return(View(request)); } }
public ActionResult PalindromeInput() { var model = new PalidromeFinderModel(); return(View(model)); }