コード例 #1
0
        public object DeleteHcCountryInfoById(object param)
        {
            Database db     = DatabaseFactory.CreateDatabase();
            object   retObj = null;

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    HcCountryDAL hcCountryDAL = new HcCountryDAL();
                    retObj = (object)hcCountryDAL.DeleteHcCountryInfoById(param, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
コード例 #2
0
        public object GetAllHcCountryRecord(object param)
        {
            object       retObj       = null;
            HcCountryDAL hcCountryDAL = new HcCountryDAL();

            retObj = (object)hcCountryDAL.GetAllHcCountryRecord(param);
            return(retObj);
        }