public async System.Threading.Tasks.Task <IEnumerable <TaskDto> > GetAllUserTasks(User user)
        {
            var tasks     = (await _todolistRepository.GetTodolistsWithTasksByUserAsync(user)).SelectMany(list => list.Items);
            var tasksDtos = _mapper.Map <IEnumerable <TaskDto> >(tasks);

            return(tasksDtos);
        }
        public async System.Threading.Tasks.Task <IEnumerable <TodolistDto> > GetAllUserTodolistsAsync(User user)
        {
            var lists = await _repository.GetTodolistsWithTasksByUserAsync(user);

            var listsDtos = _mapper.Map <IEnumerable <TodolistDto> >(lists);

            return(listsDtos);
        }