Пример #1
0
        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);
        }
Пример #2
0
        public object GetAllHcDoctorAppointmentRecord(object param)
        {
            object retObj = null;
            HcDoctorAppointmentDAL hcDoctorAppointmentDAL = new HcDoctorAppointmentDAL();

            retObj = (object)hcDoctorAppointmentDAL.GetAllHcDoctorAppointmentRecord(param);
            return(retObj);
        }