예제 #1
0
        public int Add(int UID, string BuyGoodsAndSum)
        {
            string OrderCreateTime = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
            Random random          = new Random();
            string OrderNum        = DateTime.Now.ToString("yyMMddhhmmssfff") + random.Next(10, 99);

            return(OrderDal.Add(UID, OrderNum, BuyGoodsAndSum, OrderCreateTime));
        }