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); }
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); }