public IActionResult UpdateItemInList([FromRoute] Guid listId, [FromBody] ToDoItemDTO itemDTO) { ToDoItemDTO updatedItemDTO; try { updatedItemDTO = _service.UpdateItemInList(listId, itemDTO); } catch (EntityNotFoundException) { return(NotFound()); } return(Ok(updatedItemDTO)); }