public static async Task <WebBoolResult> ProcessAsync(IOwinContext context, string programId) { if (!ServiceRegistration.IsRegistered <ITvProvider>()) { throw new BadRequestException("CancelSchedule: ITvProvider not found"); } bool result = await TVAccess.CancelScheduleAsync(context, int.Parse(programId)); return(new WebBoolResult { Result = result }); }