Exemple #1
0
        internal override string Execute(NameValueCollection commandParameters)
        {
            int channelID;

            string error = ValidateIntParameter(commandParameters, "channelId", out channelID);

            if (error != string.Empty)
            {
                return(error);
            }

            Channel channel = null;

            BLClient client = null;

            try
            {
                client = new BLClient();

                channel = client.GetChannelDetailsSimple(channelID);
            }
            catch (Exception exception)
            {
                return(ErrorWrapper.SendError(exception.Message));
            }
            finally
            {
                if (client != null)
                {
                    client.Dispose();
                }
            }

            return(Flatten(channel));
        }