public async Task <IActionResult> Edit(int id) { var model = await _repo.Item(id); if (model == null) { return(NotFound()); } return(View(model)); }