Пример #1
0
        public static async Task <WebBoolResult> ProcessAsync(IOwinContext context, string programId)
        {
            if (programId == null)
            {
                throw new BadRequestException("CancelSchedule: programId is null");
            }

            if (!ServiceRegistration.IsRegistered <ITvProvider>())
            {
                throw new BadRequestException("CancelSchedule: ITvProvider not found");
            }

            bool result = await TVAccess.UnCancelScheduleAsync(context, int.Parse(programId));

            return(new WebBoolResult {
                Result = result
            });
        }