示例#1
0
        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;
        }
示例#2
0
        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;
        }