public async Task <IEnumerable <ToDoListViewModel> > Handle(ListToDoListQuery request, CancellationToken cancellationToken) { var toDoLists = await ToDoListRepository.List(); var viewModels = toDoLists.Select(x => new ToDoListViewModel(x)).ToList(); return(viewModels); }