public ActionResult DisplayCountCharsResults(CountCharRequest req) { if (ModelState.IsValid) { var c = new CharacterCounter(); var model = new CountCharsResult(); model = c.GetResults(req.UserInput); return View(model); } return View("CountCharacters",req); }
public ActionResult CountCharacters() { var model = new CountCharRequest(); return View(model); }