Engage.Dnn.Publish.Category.UpdateApprovalStatus C# (CSharp) Method

UpdateApprovalStatus() public method

public UpdateApprovalStatus ( ) : void
return void
        public override void UpdateApprovalStatus()
        {
            IDbConnection newConnection = DataProvider.Instance().GetConnection();
            IDbTransaction trans = newConnection.BeginTransaction();
            try
            {
                this.UpdateApprovalStatus(trans);
                trans.Commit();
                Utility.ClearPublishCache(this.PortalId);
            }
            catch
            {
                trans.Rollback();
                throw;
            }
            finally
            {
                // clean up connection stuff
                newConnection.Close();
            }
        }