internal override string Execute(System.Collections.Specialized.NameValueCollection commandParameters) { int userID; if (!Helper.TryGetUserID(_session, out userID)) { return(String.Empty); } BLClient client = null; List <ChannelSimple> channels = null; try { client = new BLClient(); channels = client.GetChannelsAll(userID); } catch (Exception exception) { return(ErrorWrapper.SendError(exception.Message)); } finally { if (client != null) { client.Dispose(); } } return(Flatten(channels)); }