Ejemplo n.º 1
0
        public IActionResult Index(IndexInputModel input, int id)
        {
            var viewModel = new IndexViewModel {
                Usernames = new[] { "niki" }
            };

            return(View(viewModel));
        }
Ejemplo n.º 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));
        }