示例#1
0
        public async Task <IActionResult> GetComputers()
        {
            var computers = await _service.GetComputers();

            return(Ok(computers));
        }
示例#2
0
        public IActionResult Index()
        {
            var computers = _service.GetComputers();

            return(View(computers));
        }