Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }