Exemplo n.º 1
0
        public static Engine FromDtoToObject(EngineDto source)
        {
            Engine target = new Engine();

            target.DisplayName   = source.DisplayName;
            target.Family        = EngineFamilyAssembler.FromDtoToObject(source.Family);
            target.FuelType      = (FuelType)source.FuelType;
            target.InjectionType = (InjectionType)source.InjectionType;
            target.Type          = (EngineType)source.Type;
            return(target);
        }
Exemplo n.º 2
0
        public static EngineDto FromObjectToDto(Engine source)
        {
            EngineDto target = new EngineDto();

            target.DisplayName   = source.DisplayName;
            target.Family        = EngineFamilyAssembler.FromObjectToDto(source.Family);
            target.FuelType      = (int)source.FuelType;
            target.InjectionType = (int)source.InjectionType;
            target.Type          = (int)source.Type;
            return(target);
        }