protected override UserBetDto MapToDto(UnifiedBet unifiedBet)
        {
            var userBetDto = new UserBetDto
            {
                CommonPropertyForAllBrands = unifiedBet.CommonPropertyForAllBrands,
                DefaultSpecificBetProperty = unifiedBet.DefaultSpecificBetProperty,
                TaxInfo = BaseEntitiesMappingHelper.MapBaseTaxInfoToDto(unifiedBet.TaxInfo),
                UnifiedBetSelections = unifiedBet.UnifiedBetSelections?.Select(MapSelectionToDto).ToList()
            };

            return(userBetDto);
        }
예제 #2
0
        protected override ItUserBetDto MapToDto(ItUnifiedBet unifiedBet)
        {
            var userBetDto = new ItUserBetDto
            {
                CommonPropertyForAllBrands = unifiedBet.CommonPropertyForAllBrands,
                ItSpecificProperty         = unifiedBet.ItSpecificProperty,
                TaxInfo              = BaseEntitiesMappingHelper.MapBaseTaxInfoToDto(unifiedBet.TaxInfo),
                RegulatorInfo        = MapRegulatorInfoToDto(unifiedBet.RegulatorInfo),
                UnifiedBetSelections = unifiedBet.UnifiedBetSelections?.Select(MapSelectionToDto).ToList()
            };

            return(userBetDto);
        }