public object DeleteHcMedicineInfoById(object param) { Database db = DatabaseFactory.CreateDatabase(); object retObj = null; using (DbConnection connection = db.CreateConnection()) { connection.Open(); DbTransaction transaction = connection.BeginTransaction(); try { HcMedicineDAL hcMedicineDAL = new HcMedicineDAL(); retObj = (object)hcMedicineDAL.DeleteHcMedicineInfoById(param, db, transaction); transaction.Commit(); } catch { transaction.Rollback(); throw; } finally { connection.Close(); } } return(retObj); }
public object GetSingleHcMedicineRecordById(object param) { object retObj = null; HcMedicineDAL hcMedicineDAL = new HcMedicineDAL(); retObj = (object)hcMedicineDAL.GetSingleHcMedicineRecordById(param); return(retObj); }