示例#1
0
        public static void SetDuration(int contestantId, int duration)
        {
            var contestant = ServiceFactory.ContestantService.Get(contestantId);

            if (contestant == null || contestant.Id != contestantId)
            {
                return;
            }

            var performance = new TalentShow.Performance(contestant.Performance.Id, contestant.Performance.Description, new TimeSpan(0, 0, 0, 0, duration));

            ServiceFactory.ContestantService.UpdatePerformance(performance);
        }
示例#2
0
 public Contestant(Performance performance, double ruleViolationPenalty, double tieBreakerPoints)
 {
     Init(0, performance, ruleViolationPenalty, tieBreakerPoints);
 }