public async Task <IEnumerable <ListDto> > GetAllAsync(int userId) { IEnumerable <ToDoList> lists = await _listsRepository.GetAllWithTasksAndSharingDetailsAsync(userId); var result = lists.Select(x => _mapper.Map <ListDto>(x, opts => { opts.Items["UserId"] = userId; })); return(result); }