public async Task <IViewComponentResult> InvokeAsync()
        {
            var machine = await Task.Run(() => _machineBll.GetMachine());

            return(View(machine));
        }
示例#2
0
        public IActionResult Index()
        {
            var machine = _machineBll.GetMachine();

            return(View(machine));
        }