public async Task <ActionResult> Edit(string id) { var item = await _itemsRepo.GetItemAsync(id); if (item == null) { return(NotFound()); } return(View(item)); }
public async Task <TaskItem> GetAsync(string id) => await _itemsRepo.GetItemAsync(id);