public IActionResult Index(IndexViewModel vm) { //calling GetAll() through the service vm.AllNumbers = _service.GetAll(vm.Number.Num); //calling GetEven() through the service vm.EvenNumbers = _service.GetEven(vm.Number.Num); //calling GetOdd() through the service vm.OddNumbers = _service.GetOdd(vm.Number.Num); //calling GetFibo() through the service vm.FiboNumbers = _service.GetFibo(vm.Number.Num); vm.Message = _service.Message(vm.Number.Num); return(View(vm)); }