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); }
public object GetAllHcProductorderRecord(object param) { object retObj = null; HcProductorderDAL hcProductorderDAL = new HcProductorderDAL(); retObj = (object)hcProductorderDAL.GetAllHcProductorderRecord(param); return(retObj); }