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 )); }
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; }