internal static ServiceProduct.GenericType? dtoToProductService(GenericTypeDto? GenericType) { switch (GenericType) { case GenericTypeDto.GENERIC: return ServiceProduct.GenericType.GENERIC; case GenericTypeDto.NULL: return ServiceProduct.GenericType.NULL; case GenericTypeDto.REFERENT: return ServiceProduct.GenericType.REFERENT; } return null; }
internal static VidalAPI.Domain.GenericType dtoToNative(GenericTypeDto? GenericType) { switch (GenericType) { case GenericTypeDto.GENERIC: return VidalAPI.Domain.GenericType.GENERICTYPE_GENERIC; case GenericTypeDto.NULL: return VidalAPI.Domain.GenericType.GENERICTYPE_NULL; case GenericTypeDto.REFERENT: return VidalAPI.Domain.GenericType.GENERICTYPE_REFERENT; } return VidalAPI.Domain.GenericType.GENERICTYPE_JNULL; }