Exemplo n.º 1
0
        public void EditRolDeletePrivilegioBtn_Click()
        {
            try
            {
                string loggeduser = this.LoggedUserHdn.Text;
                RolLogic rollogic = new RolLogic();

                int rol_id = Convert.ToInt32(this.EditIdTxt.Text);

                List<int> privs = new List<int>();

                foreach (SelectedRow row in this.PrivilegiosDeRolSelectionM.SelectedRows)
                {
                    privs.Add(Convert.ToInt32(row.RecordID));
                }

                rollogic.EliminarPrivilegios(rol_id, privs, loggeduser);

                this.PrivilegiosDeRolSelectionM.ClearSelections();
            }
            catch (Exception ex)
            {
                log.Fatal("Error fatal al eliminar privilegios de rol.", ex);
                throw;
            }
        }