Пример #1
0
        public static AnswerEntity GetAnswer(int factorId, string score, string scoreDescription, string label, int commentCount,
            string title, string keyInfo, int factorTypeId)
        {
            AnswerEntity answer = new AnswerEntity();
            answer.FactorId = factorId;
            answer.Score = score;
            answer.ScoreDescription = scoreDescription;
            answer.Label = label;
            answer.CommentCount = commentCount;
            answer.Title = title;
            answer.KeyInfo = keyInfo;
            answer.FactorTypeId = factorTypeId;

            return answer;
        }
Пример #2
0
 public static AnswerEntity GetAnswer(FactorColumnEntity factorColumnEntity, int factorTypeId)
 {
     AnswerEntity answer = new AnswerEntity();
     answer.FactorId = factorColumnEntity.FactorId;
     answer.Score = factorColumnEntity.FactorScore;
     answer.ScoreDescription = factorColumnEntity.FactorScoreDescription;
     answer.Label = factorColumnEntity.FactorLabel;
     answer.CommentCount = factorColumnEntity.FactorCommentCount;
     answer.Title = factorColumnEntity.FactorTitle;
     answer.KeyInfo = factorColumnEntity.FactorKeyInfo;
     answer.FactorTypeId = factorTypeId;
     return answer;
 }