public async Task <IActionResult> GetComputer(int id) { var computer = await _service.GetComputer(id); return(Ok(computer)); }
public IActionResult Edit(int id) { var computer = _service.GetComputer(id); return(View(computer)); }