That's better.
Before you run commands on objects, you should commit
the transaction you got them from.
In the version of CommandLine.cs that you have, DBObjects
cannot be passed to Command(), only their ObjectIds can be
passed. A new version of CommandLine.cs is in the works
that supports passing an Entity or its ObjectId, but that's not
ready yet.
So, after you commit the transaction you get the polyline from,
you just pass its ObjectId to Command() rather than the Polyline
itself.
Also, i see you've added a Reverse() method to the CommandLine
class. While there's no problem with doing that, You don't really
have to, you can just calll Command() directly like this:
CommandLine.Command( "._REVERSE", asObjId, "" );
Lastly, you may be able to reverse a polyline without having
to use the command line. The PolyLine class has a ReverseCurve()
method (not sure what release that showed up in, so it may
not be in the releases you're targeting).