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

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    HcPackagedetailsDAL hcPackagedetailsDAL = new HcPackagedetailsDAL();
                    retObj = (object)hcPackagedetailsDAL.DeleteHcPackagedetailsInfoById(param, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
        public object GetAllHcPackagedetailsRecord(object param)
        {
            object retObj = null;
            HcPackagedetailsDAL hcPackagedetailsDAL = new HcPackagedetailsDAL();

            retObj = (object)hcPackagedetailsDAL.GetAllHcPackagedetailsRecord(param);
            return(retObj);
        }