public async Task <IEnumerable <TodoTaskViewModel> > GetAll() { var todoTasks = await _repository.GetAllAsync(_currentUserId.Value); return(todoTasks.ConvertAll(TodoTaskViewModel.FromModel)); }
public async Task LoadAsync() { var tasks = await _repo.GetAllAsync(); foreach (var item in tasks) { Tasks.Add(item); } }