Ejemplo n.º 1
0
        public void GetPicklist(string project, string app, string name, string format, int start, int limit)
        {
            format = MapContentType(project, app, format);
            try
            {
                Picklists obj = _adapterProvider.GetPicklist(project, app, name, format, start, limit);

                XElement xml = obj.ToXElement <Picklists>();

                if (format.ToLower() == "xml") //there is Directory in Picklists, have to use DataContractSerializer
                {
                    _adapterProvider.FormatOutgoingMessage(xml, format);
                }
                else
                {
                    _adapterProvider.FormatOutgoingMessage(xml, format);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }