public async Task <ActionResult <Item> > Put([FromRoute] Guid id, [FromBody] Item item) { var isThereAnyItem = await _service.AnyAsync(x => x.Id == id); if (!isThereAnyItem) { return(NotFound()); } item.ChangeId(id); await _service.UpdateAsync(item); return(Ok(item)); }