public int GetTotalRankForQuestionByUserId(int userId)
        {
            var questions = _questionRepository.GetAllByUserId(userId);
            int point     = 0;

            foreach (var question in questions)
            {
                point += _rankRepository.GetRankByQuestionId(question.Id).Sum(r => r.Point);
            }
            return(point);
        }
 public List <Question> GetAllQuestionByUserId(int userId)
 {
     return(_questionRepository.GetAllByUserId(userId));
 }