private List <Guid> GetPriceListForUser() { var currencySystemId = _requestModelAccessor.RequestModel.Cart.OrderCarrier.CurrencyID; var priceCalculatorArgs = new PriceCalculatorArgs { WebSiteSystemId = _requestModelAccessor.RequestModel.WebsiteModel.SystemId, CurrencySystemId = currencySystemId, UserSystemId = _securityContextService.GetIdentityUserSystemId().GetValueOrDefault(), DateTimeUtc = _requestModelAccessor.RequestModel.DateTimeUtc, CountrySystemId = _requestModelAccessor.RequestModel.CountryModel?.SystemId ?? Guid.Empty }; var result = _priceCalculator.GetPriceLists(priceCalculatorArgs).Select(x => x.SystemId); return(result.Distinct().ToList()); }
public ICollection <PriceList> GetPriceLists(PriceCalculatorArgs calculatorArgs) { return(_parent.GetPriceLists(calculatorArgs)); }
public ICollection <ProductPriceList> GetPriceLists([NotNull] PriceCalculatorArgs calculatorArgs) { SetOrangizationSystemIds(calculatorArgs); return(_parentResolver.GetPriceLists(calculatorArgs)); }