public PricingEveryday( int id, string searchGroupKey, PricingIdentity identity, List <FilterGroup> filterGroups, List <PricingEverydayValueDriver> valueDrivers, PricingEverydayKeyValueDriver keyValueDriver, List <PricingEverydayLinkedValueDriver> linkedValueDrivers, List <PricingMode> pricingModes, List <PricingEverydayPriceListGroup> priceListGroups, PricingKeyPriceListRule keyPriceListRule, List <PricingLinkedPriceListRule> linkedPriceListRules, List <PricingEverydayResult> results ) { Id = id; SearchGroupKey = searchGroupKey; Identity = identity; FilterGroups = filterGroups; ValueDrivers = valueDrivers; KeyValueDriver = keyValueDriver; LinkedValueDrivers = linkedValueDrivers; PricingModes = pricingModes; PriceListGroups = priceListGroups; KeyPriceListRule = keyPriceListRule; LinkedPriceListRules = linkedPriceListRules; Results = results; }
public PricingEveryday( int id, PricingEverydayKeyValueDriver keyValueDriver, List <PricingEverydayLinkedValueDriver> linkedValueDrivers ) { Id = id; KeyValueDriver = keyValueDriver; LinkedValueDrivers = linkedValueDrivers; }
public static Display.PricingEverydayKeyValueDriver ToDisplayEntity(this DTO.PricingEverydayKeyValueDriver dto) { var displayEntity = new Display.PricingEverydayKeyValueDriver(); displayEntity.ValueDriverId = dto.ValueDriverId; foreach (DTO.PricingEverydayKeyValueDriverGroup group in dto.Groups) { displayEntity.Groups.Add(group.ToDisplayEntity()); } return(displayEntity); }
public static DTO.PricingEverydayKeyValueDriver ToDto(this Display.PricingEverydayKeyValueDriver displayEntity) { var groups = new List <DTO.PricingEverydayKeyValueDriverGroup>(); if (displayEntity.Groups != null) { foreach (Display.PricingEverydayKeyValueDriverGroup group in displayEntity.Groups) { groups.Add(group.ToDto()); } } var dto = new DTO.PricingEverydayKeyValueDriver(displayEntity.ValueDriverId, groups); return(dto); }