Пример #1
0
        public IActionResult Index()
        {
            // Add to the service
            var path       = hostingEnvironment.ContentRootPath;
            var folderPath = Path.Combine(path, "Database");
            var filePath   = Path.Combine(folderPath, "northwind.xml");

            //var data = new[] { "Foo", "Bar" };
            var data = NorthwindDb.GetRetiredEmployees(filePath);

            return(View("index", data));
        }