Exemplo n.º 1
0
        public decimal getQuotaBonus(IQueryable <TicketWagers> ticketWagers)
        {
            int           sportsCount     = sportRepository.GetSpotsCount();
            HashSet <int> differentSports = new HashSet <int>();

            foreach (TicketWagers current in ticketWagers)
            {
                differentSports.Add(current.Match.homeTeam.sportId);
            }

            if (sportsCount == differentSports.Count)
            {
                return(10);
            }

            return(0);
        }