예제 #1
0
        public static ExternalLocation GetExternalLocation(Models.ExternalLocation source)
        {
            ExternalLocation output = null;

            if (source != null) {
                output = new ExternalLocation {
                    Id = source.Id,
                    Name = source.Name,
                    IpAddress = source.IpAddress,
                    PointOfContact = source.PointOfContact,
                    TechnicalContactPhone = source.TechnicalContactPhone,
                    TechnicalContactEmail = source.TechnicalContactEmail,
                    City =  source.City
                };
                if (source.State != null) {
                    output.State = source.State.Abbreviation;
                    output.StateId = source.StateId;
                }
            }

            return output;
        }
 public ExternalLocationReference(string name, Type type, object value)
 {
     this.name     = name;
     this.type     = type;
     this.location = new ExternalLocation(this.type, value);
 }
예제 #3
0
 public ExternalLocationReference(string name, Type type, object value)
 {
     _name     = name;
     _type     = type;
     _location = new ExternalLocation(_type, value);
 }