Ejemplo n.º 1
0
        public static async Task <WebBoolResult> ProcessAsync(IOwinContext context, string channelId, string programId)
        {
            if (!ServiceRegistration.IsRegistered <ITvProvider>())
            {
                throw new BadRequestException("GetProgramIsScheduledOnChannel: ITvProvider not found");
            }

            return(new WebBoolResult {
                Result = await TVAccess.GetProgramIsScheduledOnChannel(context, int.Parse(channelId), int.Parse(programId))
            });
        }