예제 #1
0
파일: Helpers.cs 프로젝트: joyoon/mb
        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
파일: Helpers.cs 프로젝트: joyoon/mb
 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;
 }