private void ActualizacionAutomaticaCuota()
 {
     while (1 == 1)
     {
         Thread.Sleep(5000);
         //llamamos a funcion de modificar
         try
         {
             int    numeroTotalEventos          = EventoRepository.CountEvento();           //buscamos el total de id
             Random numAleatorio                = new Random();
             int    numeroTotalEventosModificar = numAleatorio.Next(1, numeroTotalEventos); //generamos aleatoriamente el numero de eventos totales que modificaremos
             for (int i = 0; i <= numeroTotalEventosModificar; i++)
             {
                 Random numRevento        = new Random();
                 int    numeroEvento      = numRevento.Next(1, numeroTotalEventos); //seleccionamos de forma aleatoria que evento se modificara
                 Random numCuotaAleatoria = new Random();
                 float  num = (float)numCuotaAleatoria.Next(11, 50) / 10;           //se genera de forma aleatoria la cuota que se cambiara
                 EventoRepository.ModificarCuotaEvento(numeroEvento, num);          //modificamos cuota
             }
         }
         catch (Exception ex)
         {
         }
     }
 }