public static EngineFamily FromDtoToObject(EngineFamilyDto source) { EngineFamily target = new EngineFamily(); target.DisplayName = source.DisplayName; target.Link = source.Link; target.Type = (EngineFamilyType)source.Type; return(target); }
public static EngineFamilyDto FromObjectToDto(EngineFamily source) { EngineFamilyDto target = new EngineFamilyDto(); target.DisplayName = source.DisplayName; target.Link = source.Link; target.Type = (int)source.Type; return(target); }