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); }
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); }