Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        public IActionResult Index()
        {
            var model = new FizzBuzzCriteriaViewModel();

            return(View(model));
        }