AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

'Id' should be removed from the TodoItemDTO class constructor

Open marqdouj opened this issue 5 years ago • 1 comments

The TodoItemDTO class constructor takes an 'Id' parameter:

public TodoItemDTO(Todo todoItem) => (Id, Name, IsComplete) = (todoItem.Id, todoItem.Name, todoItem.IsComplete);

The constructor should be changed to:

public TodoItemDTO(Todo todoItem) => (Name, IsComplete) = (todoItem.Name, todoItem.IsComplete);


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

marqdouj avatar Nov 09 '21 12:11 marqdouj

Duplicate of #23803

Rick-Anderson avatar Nov 09 '21 16:11 Rick-Anderson