示例#1
0
        public async Task <IActionResult> GetComputer(int id)
        {
            var computer = await _service.GetComputer(id);

            return(Ok(computer));
        }
示例#2
0
        public IActionResult Edit(int id)
        {
            var computer = _service.GetComputer(id);

            return(View(computer));
        }