示例#1
0
        public object DeleteHcProductcartInfoById(object param)
        {
            Database db     = DatabaseFactory.CreateDatabase();
            object   retObj = null;

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    HcProductcartDAL hcProductcartDAL = new HcProductcartDAL();
                    retObj = (object)hcProductcartDAL.DeleteHcProductcartInfoById(param, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
示例#2
0
        public object GetAllHcProductcartRecord(object param)
        {
            object           retObj           = null;
            HcProductcartDAL hcProductcartDAL = new HcProductcartDAL();

            retObj = (object)hcProductcartDAL.GetAllHcProductcartRecord(param);
            return(retObj);
        }