Пример #1
0
        public DomainModel Create(Domain domain)
        {
            return new DomainModel
            {
                name = domain.name

            };
        }
        public Domain GetDomain(DomainModel domainModel)
        {
            Domain domain = new Domain();

            Environment.set_Ambiente(domainModel.name);
            domain.name = domainModel.name;
            domain.language = Environment.LeerVarAmbienteEx("", "Idioma");
            domain.connectionType = Convert.ToInt32(Environment.LeerVarAmbienteEx("", "WebTipoconexion"));
            domain.securityLevel = ((Environment.LeerVarAmbienteEx("", "Nvlseg")) != "") ? Convert.ToInt32(Environment.LeerVarAmbienteEx("", "Nvlseg")) : 0;
            domain.webEnvironment = Environment.LeerVarAmbienteEx("", "WebAmbientes");

            return domain;
        }