示例#1
0
        public IHttpActionResult TestDI()
        {
            _logger.LogTrace("TestDI REST endpoint fired...");
            var strings = _diTestSvc.GetStringValues();

            return(Ok(strings));
        }
示例#2
0
        public ActionResult Index()
        {
            var vm = new IndexViewModel
            {
                SomeIntValues    = _diTestSvc.GetIntValues(),
                SomeStringValues = _diTestSvc.GetStringValues()
            };

            return(View(vm));
        }