public IActionResult Index(IndexInputModel input, int id)
        {
            var viewModel = new IndexViewModel {
                Usernames = new[] { "niki" }
            };

            return(View(viewModel));
        }
Example #2
0
        public IActionResult Index(IndexInputModel input, int id)
        {
            if (id == 0)
            {
                this.logger.LogCritical(100, $"Id is {id}");
            }

            var viewModel = new IndexViewModel {
                Usernames = new[] { "niki" }
            };

            return(View(viewModel));
        }