public IActionResult Calculate(FizzBuzzCriteriaViewModel model) { if (ModelState.IsValid == true) { var service = new FizzBuzzService(); model.Result = service.GetFizzBuzzResult(model.InputNumber); return(View(model)); } return(View(model)); }
public IActionResult Index() { var model = new FizzBuzzCriteriaViewModel(); return(View(model)); }