예제 #1
0
        /// <summary>
        /// Performs Inactivate operation.
        /// </summary>
        public virtual void Close()
        {
            CommitChanges(false);

            try {
                DataLayer.ExecuteOperation(Asset, Asset.AssetType.GetOperation("Inactivate"));
                EntityContainer.Cleanup(this);
            } catch (APIException ex) {
                Logger.Error("Failed to inactivate item.", ex);
            }
        }
 public override void RevertChanges()
 {
     EntityContainer.Cleanup(this);
 }