This project has moved and is read-only. For the latest updates, please go here.

Eval() always returns null

Feb 21 at 10:20 PM
Having an issue with an expression that always returns null. Here is my expression:
        if (target.terminal_id == null && source.terminal_id_alt != null)
        {
            dc.GetTerminalIDByTerminalAltId(source.terminal_id_alt);
        }            
        else
            null;
I'm registering target, source and dc and my ExpressionType is set to StatementList; although I've tried all them with the same results. When I call Eval(), my GetTerminalIDByTerminalAltId method is called and the parameter value is passed and that method returns the result. However, the result (string) is never passed through Eval; all I get is a null. I gotta be missing something; any ideas?

Thanks in advance!