public async Task <IViewComponentResult> InvokeAsync() { var machine = await Task.Run(() => _machineBll.GetMachine()); return(View(machine)); }
public IActionResult Index() { var machine = _machineBll.GetMachine(); return(View(machine)); }