public void CreateObjectFromUserLogin(CustomerUserEntry _CustomerUserEntry, Services.Packages.Security.ModelUser _UserLogin, string SessionToken)
        {
            ModelSession session = CustomerUserEntrySecureService.CheckSessionImp(SessionToken);

            //if (!Services.Packages.Security.Security.ModelUserSecureService.CheckAccessImp(_UserLogin, SessionToken, "Create CustomerUserEntries"))
            //	throw new UnauthorizedAccessException("Access Denied");

            _CustomerUserEntry.Reload();

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

            _CustomerUserEntry.Owner = session.User;
            _CustomerUserEntry.UserLogin = _UserLogin;
            _CustomerUserEntry.Create();
        }
        public void CreateObject(CustomerUserEntry _CustomerUserEntry, string SessionToken)
        {
            ModelSession session = CustomerUserEntrySecureService.CheckSessionImp(SessionToken);

            if (!CustomerUserEntrySecureService.CheckUserRightsImp(session.User.Name, "Create " + typeof(CustomerUserEntry).FullName))
                throw new UnauthorizedAccessException("Access Denied");

            _CustomerUserEntry.Owner = session.User;
            _CustomerUserEntry.Create();
        }