Ejemplo n.º 1
0
        public static VehicleCharacteristicsItemsGroupDto FromDomainObjectToDto(VehicleCharacteristicsItemsGroup source)
        {
            VehicleCharacteristicsItemsGroupDto target =
                new VehicleCharacteristicsItemsGroupDto();

            target.Id = source.Id;
            target.CharacteristicsId = source.CharacteristicsId;
            target.Name = source.Name;
            foreach (VehicleCharacteristicsItem item in source.Items)
            {
                target.Items.Add(VehicleCharacteristicsItemAssembler.
                                 FromDomainObjectToDto(item));
            }
            return(target);
        }
Ejemplo n.º 2
0
        public static VehicleCharacteristicsItemsGroupEntity FromDomainObjectToEntity(
            VehicleCharacteristicsItemsGroup source)
        {
            VehicleCharacteristicsItemsGroupEntity target =
                new VehicleCharacteristicsItemsGroupEntity();

            target.Id = source.Id;
            target.VehicleCharacteristicsEntityId = source.CharacteristicsId;
            target.Name = source.Name;
            foreach (VehicleCharacteristicsItem item in source.Items)
            {
                target.VehicleCharacteristicsItem.Add(VehicleCharacteristicsItemAssembler.
                                                      FromDomainObjectToEntity(item));
            }
            return(target);
        }
Ejemplo n.º 3
0
        public static VehicleCharacteristicsItemsGroup FromEntityToDomainObject(
            VehicleCharacteristicsItemsGroupEntity source)
        {
            VehicleCharacteristicsItemsGroup target =
                new VehicleCharacteristicsItemsGroup();

            target.Id = source.Id;
            target.CharacteristicsId = source.VehicleCharacteristicsEntityId;
            target.Name = source.Name;
            foreach (VehicleCharacteristicsItemEntity item in
                     source.VehicleCharacteristicsItem)
            {
                target.Items.Add(VehicleCharacteristicsItemAssembler.
                                 FromEntityToDomainObject(item));
            }
            return(target);
        }