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,
     PricingIdentity identity
     )
 {
     Id       = id;
     Identity = identity;
 }
        public static DTO.PricingIdentity ToDto(this Display.PricingIdentity displayEntity)
        {
            var dto = new DTO.PricingIdentity(
                displayEntity.AnalyticsId,
                displayEntity.Name,
                displayEntity.Description,
                displayEntity.Notes,
                displayEntity.RefreshedText,
                displayEntity.CreatedText,
                displayEntity.EditedText,
                displayEntity.Refreshed,
                displayEntity.Created,
                displayEntity.Edited,
                displayEntity.Author,
                displayEntity.Editor,
                displayEntity.Owner,
                displayEntity.Shared,
                displayEntity.Active);

            return(dto);
        }
        public static Display.PricingIdentity ToDisplayEntity(this DTO.PricingIdentity dto)
        {
            var displayEntity = new Display.PricingIdentity();

            displayEntity.AnalyticsId   = dto.AnalyticsId;
            displayEntity.Name          = dto.Name;
            displayEntity.Description   = dto.Description;
            displayEntity.Notes         = dto.Notes;
            displayEntity.RefreshedText = dto.RefreshedText;
            displayEntity.CreatedText   = dto.CreatedText;
            displayEntity.EditedText    = dto.EditedText;
            displayEntity.Refreshed     = dto.Refreshed;
            displayEntity.Created       = dto.Created;
            displayEntity.Edited        = dto.Edited;
            displayEntity.Author        = dto.Author;
            displayEntity.Editor        = dto.Editor;
            displayEntity.Owner         = dto.Owner;
            displayEntity.Shared        = dto.Shared;
            displayEntity.Active        = dto.Active;

            return(displayEntity);
        }