public IActionResult CreateItemInList([FromRoute] Guid listId, [FromBody] ToDoItemDTO itemDTO) { ToDoItemDTO newItemDTO; try { newItemDTO = _service.CreateItemInList(listId, itemDTO); } catch (EntityNotFoundException) { return(NotFound()); } return(CreatedAtAction(nameof(GetItemsForToDoList), new { id = listId }, newItemDTO)); }