private static void CancelSingleSchedule(Schedule schedule, Program canceledProgram) { ICanceledScheduleService canceledScheduleService = GlobalServiceProvider.Instance.Get <ICanceledScheduleService>(); CanceledSchedule canceledSchedule = CanceledScheduleFactory.CreateCanceledSchedule(schedule.IdSchedule, canceledProgram.IdChannel, canceledProgram.StartTime); canceledScheduleService.SaveCanceledSchedule(canceledSchedule); StopRecording(schedule); }
private static void CancelSingleSchedule(Schedule schedule, Program canceledProgram) { ICanceledScheduleService canceledScheduleService = GlobalServiceProvider.Instance.Get<ICanceledScheduleService>(); CanceledSchedule canceledSchedule = CanceledScheduleFactory.CreateCanceledSchedule(schedule.IdSchedule, canceledProgram.IdChannel, canceledProgram.StartTime); canceledScheduleService.SaveCanceledSchedule(canceledSchedule); StopRecording(schedule); }