Skip to content

Commit

Permalink
Return identifiers with todo items
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetseckin committed Oct 25, 2019
1 parent 0f763e8 commit 7d3f14a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Todo.Core/Model/TodoItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace Todo.Core.Model
{
public class TodoItem
{
public string Id { get; set; }
public string Subject { get; set; }
}
}
1 change: 1 addition & 0 deletions src/Todo.Core/Repository/TodoItemRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public async Task<IEnumerable<TodoItem>> ListAsync(bool listAll)
var tasks = await request.GetAsync();
return tasks.Select(task => new TodoItem()
{
Id = task.Id,
Subject = task.Subject
});
}
Expand Down

0 comments on commit 7d3f14a

Please sign in to comment.