I'm using a cfc that has a function "GetGPA". It takes 2 arguments, ClientID and Mode. Mode can be one of 2 things, either 'Quarterly' or 'Cumulative'.
The SQL to calculate the GPA only differs in ONE operator -- Quarterly = -- Cumulative <= Now, I'd like to call this cfc from flex so i can display a chart of both the quarterly and cumulative GPAs, but since it's calling the same function twice with different parameters, is there a good way to bind the right resultset to the right lineseries? I hate to have 2 separate 50 line functions that only differ in one line.. Hmmmm unless... Would a wrapper function be the way to go? GetQuarterlyGPA(ClientID) GetCumulativeGPA(ClientID) GetGPA(ClientID,Mode) Is there some better way to go about this?

