Where does the method GetWorksetIds come from? I see no such method in the Revit API. Have you implemented that yourself? How?
GetWorksetIds