Пример #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);
 }