The following line of code does not act as I expect. I would think that ?? would supersede the == operator in order of operation, however, when scheduledAction.Active is true --> this if statement evaluates as true (rather than false)
if (scheduledAction.Active ?? false ==false)