public void GetPicklists(string project, string app, string format) { try { format = MapContentType(project, app, format); IList <PicklistObject> objs = _adapterProvider.GetPicklists(project, app, format); if (format.ToLower() == "xml") //there is Directory in Picklists, have to use DataContractSerializer { _adapterProvider.FormatOutgoingMessage <IList <PicklistObject> >(objs, format, true); } else { _adapterProvider.FormatOutgoingMessage <IList <PicklistObject> >(objs, format, false); } } catch (Exception ex) { throw ex; } }