Example #1
0
        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));
            }
        }
Example #2
0
        public ActionResult PalindromeInput()
        {
            var model = new PalidromeFinderModel();

            return(View(model));
        }