Пример #1
0
        public object DeleteHcProductorderInfoById(object param)
        {
            Database db     = DatabaseFactory.CreateDatabase();
            object   retObj = null;

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    HcProductorderDAL    hcProductorderDAL    = new HcProductorderDAL();
                    HcProductorderEntity hcProductorderEntity = (HcProductorderEntity)param;
                    retObj = (object)hcProductorderDAL.DeleteHcProductorderInfoById(hcProductorderEntity, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
Пример #2
0
        public object GetAllHcProductorderRecord(object param)
        {
            object            retObj            = null;
            HcProductorderDAL hcProductorderDAL = new HcProductorderDAL();

            retObj = (object)hcProductorderDAL.GetAllHcProductorderRecord(param);
            return(retObj);
        }