Пример #1
0
        public static PartnerServiceConfig GetPartnerServiceConfig(int PartnerId)
        {
            var result = new PartnerServiceConfig();

            using (var connection = new OracleConnection(FscApplication.Current.Settings.FscConnectionString))
            {
                connection.Open();
                result = connection.QueryFirst <PartnerServiceConfig>($"select partner_order_id PartnerId, version Version, service_rule ServiceRule from " +
                                                                      $"fsc_dba.offnet_service where partner_order_id = :PartnerId", new { PartnerId });
                connection.Close();
            }
            return(result);
        }
Пример #2
0
        public static PartnerServiceConfig GetPartnerServiceConfig(PartnerKeyWeb key)
        {
            var config = new PartnerServiceConfig();

            return(config.Get(key));
        }