Exemple #1
0
        protected void rGrid_Delete(object sender, RowEventArgs e)
        {
            Rock.Model.Auth auth = authService.Get((int)rGrid.DataKeys[e.RowIndex]["id"]);
            if (auth != null)
            {
                authService.Delete(auth, CurrentPersonId);
                authService.Save(auth, CurrentPersonId);

                Authorization.ReloadAction(iSecured.TypeId, iSecured.Id, CurrentAction);
            }

            BindGrid();
        }