示例#1
0
        public bool SetDBCartStatus(int cartId, int cartStatusId, string userId)
        {
            try
            {
                CartDetail cart = cartdb.GetCartDetail(cartId);
                cart.CartStatusId = cartStatusId;

                var editResult = cartdb.EditCartDetails(cart);
                if (editResult)
                {
                    var addRecord = addCartHistory(cartId, cartStatusId, userId);
                    if (addRecord)
                    {
                        return(true);
                    }
                }

                return(false);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }