public void SetParentException(ApplicationException _ApplicationException, Services.Packages.Log.ApplicationException _ParentException, string SessionToken)
            {
                _ApplicationException.Reload();

                //*
                if (!Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _ParentException.Reload();
                if (_ParentException.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ParentException, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_ParentException.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Create InnerExceptions"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApplicationException.ParentException = _ParentException;
                _ApplicationException.Update();
            }
            public void SetOwner(ApplicationException _ApplicationException, Services.Packages.Security.ModelUser _Owner, string SessionToken)
            {
                _ApplicationException.Reload();

                //*
                if (!Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Owner.Reload();
                if (_Owner.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_Owner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Owner.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Create ApplicationExceptionOwning"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApplicationException.Owner = _Owner;
                _ApplicationException.Update();
            }
            public void SetOwner(CustomerUserEntry _CustomerUserEntry, Services.Packages.Security.ModelUser _Owner, string SessionToken)
            {
                _CustomerUserEntry.Reload();

                //*
                if (!Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Owner.Reload();
                if (_Owner.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_Owner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Owner.Exists && !Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Create CustomerUserEntryOwning"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _CustomerUserEntry.Owner = _Owner;
                _CustomerUserEntry.Update();
            }
            public void SetApiKey(ApplicationException _ApplicationException, Services.Packages.ApiKey _ApiKey, string SessionToken)
            {
                _ApplicationException.Reload();

                //*
                if (!Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _ApiKey.Reload();
                if (_ApiKey.Exists && !Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_ApiKey.Exists && !Services.Packages.Log.Security.ApplicationExceptionSecureService.CheckAccessImp(_ApplicationException, SessionToken, "Create ApplicationExceptionsLogged"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApplicationException.ApiKey = _ApiKey;
                _ApplicationException.Update();
            }
            public void SetUserLogin(CustomerUserEntry _CustomerUserEntry, Services.Packages.Security.ModelUser _UserLogin, string SessionToken)
            {
                _CustomerUserEntry.Reload();

                //*
                if (!Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _UserLogin.Reload();
                if (_UserLogin.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_UserLogin, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_UserLogin.Exists && !Services.Packages.Security.CustomerUserEntrySecureService.CheckAccessImp(_CustomerUserEntry, SessionToken, "Create CustomerUserEntries"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _CustomerUserEntry.UserLogin = _UserLogin;
                _CustomerUserEntry.Update();
            }
            public void SetPartner(Customer _Customer, Services.Packages.Customer _Partner, string SessionToken)
            {
                _Customer.Reload();

                //*
                if (!Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Customer, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Partner.Reload();
                if (_Partner.Exists && !Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Partner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Partner.Exists && !Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Customer, SessionToken, "Create PartnerCustomers"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _Customer.Partner = _Partner;
                _Customer.Update();
            }
            public void SetCustomer(ApiKey _ApiKey, Services.Packages.Customer _Customer, string SessionToken)
            {
                _ApiKey.Reload();

                //*
                if (!Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Customer.Reload();
                if (_Customer.Exists && !Services.Packages.Security.CustomerSecureService.CheckAccessImp(_Customer, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Customer.Exists && !Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Create LicensesIssued"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _ApiKey.Customer = _Customer;
                _ApiKey.Update();
            }
            public void SetOwner(PurchaseLine _PurchaseLine, Services.Packages.Security.ModelUser _Owner, string SessionToken)
            {
                _PurchaseLine.Reload();

                //*
                if (!Services.Packages.Security.PurchaseLineSecureService.CheckAccessImp(_PurchaseLine, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _Owner.Reload();
                if (_Owner.Exists && !Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_Owner, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_Owner.Exists && !Services.Packages.Security.PurchaseLineSecureService.CheckAccessImp(_PurchaseLine, SessionToken, "Create PurchaseLineOwning"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _PurchaseLine.Owner = _Owner;
                _PurchaseLine.Update();
            }
            public void SetApiKey(Package _Package, Services.Packages.ApiKey _ApiKey, string SessionToken)
            {
                _Package.Reload();

                //*
                if (!Services.Packages.Security.PackageSecureService.CheckAccessImp(_Package, SessionToken, "Traverse"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                //*
                _ApiKey.Reload();
                if (_ApiKey.Exists && !Services.Packages.Security.ApiKeySecureService.CheckAccessImp(_ApiKey, SessionToken, "Update"))
                throw new UnauthorizedAccessException("Access Denied");
                else if (!_ApiKey.Exists && !Services.Packages.Security.PackageSecureService.CheckAccessImp(_Package, SessionToken, "Create PackagesUploaded"))
                throw new UnauthorizedAccessException("Access Denied");
                //*/

                _Package.ApiKey = _ApiKey;
                _Package.Update();
            }