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

            return(View(viewModel));
        }
Exemple #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));
        }