コード例 #1
0
        public Task <GetToDoListsResponse> Handle(GetToDoLists request, CancellationToken cancellationToken)
        {
            var toDoLists = _repository.GetToDoLists();

            return(Task.FromResult(new GetToDoListsResponse {
                Data = toDoLists
            }));
        }
コード例 #2
0
 public IQueryable <Entity.ToDoList> GetToDoLists() => _repository.GetToDoLists();