private BossIDWS.Vendor.REST.ReturnObjects.AccessPointList TransformToAccessPointList(string installationid, List <VendorPoint> points)
        {
            var list = new BossIDWS.Vendor.REST.ReturnObjects.AccessPointList();
            List <BossIDWS.Vendor.REST.ReturnObjects.AccessPoint> plist = new List <BossIDWS.Vendor.REST.ReturnObjects.AccessPoint>();

            foreach (VendorPoint sp in points)
            {
                BossIDWS.Vendor.REST.ReturnObjects.AccessPoint p = new BossIDWS.Vendor.REST.ReturnObjects.AccessPoint();
                p.installationid = installationid;
                p.accesspointid  = sp.AccessPointId.ToString();
                p.parentid       = (sp.ParentId.Equals(Guid.Empty) ? string.Empty : sp.ParentId.ToString());
                p.category       = (sp.Type == 2 ? "2" : "1");
                p.tag            = string.Empty;
                p.size           = "B";
                p.capacity       = string.Empty;
                p.name           = sp.Name;
                p.description    = sp.Description;
                p.role           = "NA";
                p.wpn            = sp.Fraction.ToString();
                p.unit           = "G";
                p.gps            = string.Empty;
                p.decimaldegrees = string.Empty;
                p.zone           = string.Empty;
                p.x     = string.Empty;
                p.y     = string.Empty;
                p.state = (sp.Deleted ? "D" : "A");
                plist.Add(p);
            }
            list.AccessPoints = plist.ToArray();
            return(list);
        }
        private BossIDWS.Vendor.REST.ReturnObjects.AccessPointList TransformToCustomerPointList(string installationid, List <VendorCustomerPoint> points)
        {
            var list = new BossIDWS.Vendor.REST.ReturnObjects.AccessPointList();
            List <BossIDWS.Vendor.REST.ReturnObjects.AccessPoint> plist = new List <BossIDWS.Vendor.REST.ReturnObjects.AccessPoint>();

            foreach (VendorCustomerPoint sp in points)
            {
                BossIDWS.Vendor.REST.ReturnObjects.AccessPoint p = new BossIDWS.Vendor.REST.ReturnObjects.AccessPoint();
                p.installationid = installationid;
                p.accesspointid  = sp.AccessPointId.ToString();
                p.parentid       = string.Empty;
                p.category       = "1";
                p.tag            = string.Empty;
                p.size           = sp.CustomerType == 3?"L":"N";
                p.capacity       = string.Empty;
                p.name           = sp.Name;
                p.description    = sp.Description;
                p.role           = (sp.RedundancyGroup == 1 ? "PR" : (sp.RedundancyGroup == 2 ? "S1" : "S2"));
                p.wpn            = sp.Fraction.ToString();
                p.unit           = "G";
                p.gps            = string.Empty;
                p.decimaldegrees = string.Empty;
                p.zone           = string.Empty;
                p.x     = string.Empty;
                p.y     = string.Empty;
                p.state = sp.Enabled?"A":"W";
                plist.Add(p);
            }
            list.AccessPoints = plist.ToArray();
            return(list);
        }