コード例 #1
0
        public void AddPrivilegiosAddPrivilegioBtn_Click()
        {
            try
            {
                string loggeduser = this.LoggedUserHdn.Text;
                int    rol_id     = Convert.ToInt32(this.EditIdTxt.Text);

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

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


                RolLogic rollogic = new RolLogic();
                rollogic.InsertarPrivilegios(rol_id, privs, loggeduser);
            }
            catch (Exception ex)
            {
                log.Fatal("Error fatal al agregar privilegios de rol.", ex);
                throw;
            }
        }