Пример #1
0
 private Boolean CheckStoreConfiguration(WebStoreServices.StoreConfiguration storeConfiguration)
 {
     return(this._defaultStoreContext.Value.Configurations.Any(
                c => c.Culture.LCID == storeConfiguration.CultureId &&
                c.Country.CountryId == storeConfiguration.CountryId &&
                c.Currency.CurrencyId == storeConfiguration.CurrencyId
                ));
 }
Пример #2
0
        private void SetCurrentCurrencyId(Int32 currencyId)
        {
            WebStoreServices.StoreConfiguration storeConfiguration = this._dataStoreConfigurations.Where(c => c.Country.CountryId == this.CurrentCountryId && c.Currency.CurrencyId == currencyId)
                                                                     .OrderByDescending(c => c.Culture.LCID == this.CurrentCultureId)
                                                                     .Select(c => new WebStoreServices.StoreConfiguration(c))
                                                                     .FirstOrDefault();

            this._storeConfiguration = storeConfiguration;
        }