protected void gOAuthScopeEdit_SaveClick(object sender, EventArgs e)
        {
            ScopeService scopeService = new ScopeService(OAuthContext);
            Scope        scope        = null;

            if (hfScopeId.Value.AsIntegerOrNull().HasValue)
            {
                scope = scopeService.Get(hfScopeId.Value.AsInteger());
            }
            else
            {
                scope = new Scope();
                scopeService.Add(scope);
            }
            scope.Identifier  = tbIdentifier.Text;
            scope.Description = tbDescription.Text;
            scope.Active      = cbScopeActive.Checked;
            OAuthContext.SaveChanges();
            OAuthContext = new OAuthContext();
            gOAuthScopes_Bind(sender, e);
            gOAuthScopeEdit.Hide();
        }