Пример #1
0
        public object DeleteHcMedicinetypeInfoById(object param)
        {
            Database db     = DatabaseFactory.CreateDatabase();
            object   retObj = null;

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    HcMedicinetypeDAL hcMedicinetypeDAL = new HcMedicinetypeDAL();
                    retObj = (object)hcMedicinetypeDAL.DeleteHcMedicinetypeInfoById(param, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
Пример #2
0
        public object GetAllHcMedicinetypeRecord(object param)
        {
            object            retObj            = null;
            HcMedicinetypeDAL hcMedicinetypeDAL = new HcMedicinetypeDAL();

            retObj = (object)hcMedicinetypeDAL.GetAllHcMedicinetypeRecord(param);
            return(retObj);
        }