public void CreateWebsitePermission(WebSiteAccessPermission webSiteAccessPermission)
        {
            if (webSiteAccessPermission == null)
            {
                throw new ArgumentNullException("The web site access permission object must not be null");
            }

            webSiteAccessPermissionRepository.Add(webSiteAccessPermission);
            securityUnitOfWork.Commit();
        }
        public void UpdateWebsitePermission(WebSiteAccessPermission webSiteAccessPermission)
        {
            if (webSiteAccessPermission == null)
            {
                throw new ArgumentNullException("The web site access permission must not be null");
            }

            if (webSiteAccessPermission.Id <= 0)
            {
                throw new ArgumentException("The web site access permission id must be valid");
            }

            webSiteAccessPermissionRepository.Update(webSiteAccessPermission, x => x.Id);
            securityUnitOfWork.Commit();
        }