public static Vendor GetVendor(string number)
        {
            var endpoint = WebService.GetServiceEndpoint <Vendors_PortChannel>();
            var client   = new Vendors_PortClient(endpoint.Binding, endpoint.Address);
            var vendor   = client.Read(number);

            return(vendor.ToPowerGateObject());
        }
        public override IEnumerable <Vendor> Query(IExpression <Vendor> expression)
        {
            var results = new List <Vendor>();

            var endpoint = WebService.GetServiceEndpoint <Vendors_PortChannel>();
            var client   = new Vendors_PortClient(endpoint.Binding, endpoint.Address);
            var vendors  = client.ReadMultiple(null, null, expression.TopCount);

            foreach (var vendor in vendors)
            {
                results.Add(vendor.ToPowerGateObject());
            }

            return(results);
        }