private tb_configuration_limitation ToDbModel(ConfigurationLimitationModel configurationLimitation)
        {
            tb_configuration_limitation tbConfigurationLimitation = new tb_configuration_limitation();

            tbConfigurationLimitation.vl_latitude = configurationLimitation.Latitude;
            tbConfigurationLimitation.vl_longitude = configurationLimitation.Longitude;
            tbConfigurationLimitation.ds_host = configurationLimitation.Host;

            if(configurationLimitation.LimitationType != null)
                tbConfigurationLimitation.tb_limitation_type_id_limitation_type = configurationLimitation.LimitationType.Id;

            return tbConfigurationLimitation;
        }
        public ConfigurationLimitationModel ToModel(tb_configuration_limitation tbConfigurationLimitation)
        {
            ConfigurationLimitationModel configurationLimitation = new ConfigurationLimitationModel();

            configurationLimitation.Id = tbConfigurationLimitation.id_configuration_limitation;
            if (tbConfigurationLimitation.vl_latitude != null)
                configurationLimitation.Latitude = (double)tbConfigurationLimitation.vl_latitude;
            if (tbConfigurationLimitation.vl_longitude != null)
                configurationLimitation.Longitude = (double)tbConfigurationLimitation.vl_longitude;
            configurationLimitation.Host = tbConfigurationLimitation.ds_host;

            if (tbConfigurationLimitation.tb_limitation_type != null)
                configurationLimitation.LimitationType = new LimitationTypeService().ToModel(tbConfigurationLimitation.tb_limitation_type);

            return configurationLimitation;
        }