Beispiel #1
0
        public Boolean Insert(CartENT entCart)
        {
            CartDAL dalCart = new CartDAL();

            if (dalCart.Insert(entCart))
            {
                return(true);
            }
            else
            {
                Message = dalCart.Message;
                return(false);
            }
        }
Beispiel #2
0
 /// <summary>
 /// 向数据库中添加一条记录
 /// </summary>
 /// <param name="model">要添加的实体</param>
 /// <returns>插入数据的ID</returns>
 public int Insert(Cart model)
 {
     return(_dao.Insert(model));
 }