public async Task <IActionResult> Update(Guid id) { var item = await _toDoItemService.GetAsync(id); if (item == null) { return(NotFound()); } var model = new UpdateViewModel() { Id = item.Id, Name = item.Name }; return(View(model)); }