public BetedPair BetedPair(BetablePair betablePair, BetingType type)
 {
     return(new BetedPair
     {
         BetablePair = betablePair,
         BetablePairId = betablePair.Id,
         BetedType = type
     });
 }
        public static decimal GetQuotaForType(this BetablePair pair, BetingType type)
        {
            switch (type)
            {
            case BetingType.Team1Win: return(pair.Team1WinQuota);

            case BetingType.Team2Win: return(pair.Team2WinQuota);

            case BetingType.Draw: return(pair.DrawQuota);

            default: throw new ArgumentOutOfRangeException(nameof(type), type, null);
            }
        }