public ShippingProviderOption(ShippingProviderPart provider, ShippingOptionRecord option) { this.Provider = provider; this.Option = option; }
private void InitEditViewModel(ref ShippingOptionEditViewModel model, ShippingProviderPart provider) { model.ShippingProviderName = provider.As<ITitleAspect>().Title; model.ReturnUrl = Url.ItemAdminUrl(provider); model.ShippingZones = _shippingService.GetZones(); }
public IEnumerable<ShippingOptionRecord> GetOptions(ShippingProviderPart part) { return _optionRepository.Fetch(o => o.ShippingProviderId == part.Id); }