public static XElement GetSystemWideListXml(SystemWideListFilterData filter)
        {
            XElement obj = null;

            CreateCoreServiceClient().Using(client =>
            {
                try
                {
                    obj = client.GetSystemWideListXml(filter);
                }
                catch (Exception e)
                {
                    obj = null;
                }
            });
            return(obj);
        }
        public static IList <T> GetSystemWideList <T>(SystemWideListFilterData filter) where T : IdentifiableObjectData
        {
            IList <T> obj = null;

            CreateCoreServiceClient().Using(client =>
            {
                try
                {
                    obj = client.GetSystemWideList(filter).Cast <T>().ToList();
                }
                catch (Exception e)
                {
                    obj = null;
                }
            });
            return(obj);
        }
Example #3
0
 public XElement GetSystemWideListXml(SystemWideListFilterData filter)
 {
     return this.Client.GetSystemWideListXml(filter);
 }