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); }
public Contestant(Performance performance, double ruleViolationPenalty, double tieBreakerPoints) { Init(0, performance, ruleViolationPenalty, tieBreakerPoints); }