コード例 #1
0
        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);
        }
コード例 #2
0
        public object GetAllHcServicesRecord(object param)
        {
            object        retObj        = null;
            HcServicesDAL hcServicesDAL = new HcServicesDAL();

            retObj = (object)hcServicesDAL.GetAllHcServicesRecord(param);
            return(retObj);
        }