protected void gOAuthScopesDelete_Click(object sender, Rock.Web.UI.Controls.RowEventArgs e) { ScopeService scopeService = new ScopeService(OAuthContext); scopeService.Delete(scopeService.Get(e.RowKeyId)); OAuthContext.SaveChanges(); OAuthContext = new OAuthContext(); gOAuthScopes_Bind(sender, e); }