static public void Delete(System.Int32 territoryID, esSqlAccessType sqlAccessType)
        {
            var obj = new TerritoryEx();

            obj.TerritoryID = territoryID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }