예제 #1
0
        public void AddBet(string idstring, decimal amount, int userid)
        {
            idstring = idstring.Remove(idstring.Length - 1, 1);
            string[] ids = idstring.Split(",");

            List <BettingOption> betlist = new List <BettingOption>();

            foreach (var item in ids)
            {
                betlist.Add(MatchContext.AddBetSlipOption(Convert.ToInt32(item)));
            }

            MatchContext.AddBet(betlist, amount, userid);
        }