internal override string Execute(System.Collections.Specialized.NameValueCollection commandParameters) { int channelsSlideID; int userID; if (!Helper.TryGetUserID(_session, out userID)) { return(String.Empty); } string error = ValidateIntParameter(commandParameters, "slideID", out channelsSlideID); if (error != String.Empty) { return(error); } ChannelSlideProperties channelSlideProperties = null; BLClient client = null; // call WCF BLL Method try { client = new BLClient(); channelSlideProperties = client.GetChannelSlideProperties(userID, channelsSlideID); } catch (Exception exception) { return(ErrorWrapper.SendError(exception.Message)); } finally { if (client != null) { client.Dispose(); } } return(Flatten(channelSlideProperties)); }