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