public IActionResult Index(decimal someNumber) { ViewData["someNumber"] = someNumber; var wordedResponse = string.Empty; if (someNumber != 0) { wordedResponse = _converterService.ConvertIntoWords(someNumber); } else { wordedResponse = "Zero"; } ViewData["ConvertedWords"] = wordedResponse; return(View()); }