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