public async Task <TodoTaskViewModel> Get(string id) { var todoTask = await _repository.GetAsync(id); return(todoTask is null ? null : TodoTaskViewModel.FromModel(todoTask)); }
public async Task <IList <TodoTask> > GetAsync(ToDoTaskFilter filter, CancellationToken token) { return(await todoTaskRepository.GetAsync(filter.ShowOnlyNonFinished, token)); }