public override Task LoadingAsync(LoadContentContext context, PriceVariantsPart part) { if (part.Variants != null) { foreach (var variantKey in part.Variants.Keys) { part.Variants[variantKey] = _moneyService.EnsureCurrency(part.Variants[variantKey]); } } return(base.LoadingAsync(context, part)); }
public override Task LoadingAsync(LoadContentContext context, PricePart part) { part.Price = _moneyService.EnsureCurrency(part.Price); return(base.LoadingAsync(context, part)); }