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