예제 #1
0
 public List<CatalogoPermisos> obtenerCatalogoPermisos()
 {
     List<CatalogoPermisos> lstPermiso = new List<CatalogoPermisos>();
     DataTable dtMenu = new DataTable();
     Command.CommandText = "select id, permiso from CatalogoPermisos";
     Command.Parameters.Clear();
     dtMenu = SelectData(Command);
     for (int i = 0; i < dtMenu.Rows.Count; i++)
     {
         CatalogoPermisos permiso = new CatalogoPermisos();
         permiso.id = int.Parse(dtMenu.Rows[i]["id"].ToString());
         permiso.permiso = dtMenu.Rows[i]["permiso"].ToString();
         lstPermiso.Add(permiso);
     }
     return lstPermiso;
 }