Пример #1
0
        protected string GetComment(TalentShow.ScoreCard scoreCard, TalentShow.ScoreCriterion scoreCriterion)
        {
            string comment = "";

            if (scoreCard != null)
            {
                var scorableCriterion = scoreCard.ScorableCriteria.FirstOrDefault(s => s.ScoreCriterion.Id == scoreCriterion.Id);

                if (scorableCriterion != null)
                {
                    comment = scorableCriterion.Comment;
                }
            }

            return(comment);
        }
Пример #2
0
        protected double GetScore(TalentShow.ScoreCard scoreCard, TalentShow.ScoreCriterion scoreCriterion)
        {
            double score = 0;

            if (scoreCard != null)
            {
                var scorableCriterion = scoreCard.ScorableCriteria.FirstOrDefault(s => s.ScoreCriterion.Id == scoreCriterion.Id);

                if (scorableCriterion != null)
                {
                    score = scorableCriterion.Score;
                }
            }

            return(score);
        }