title: How to call a Method every 10 seconds with c# asp.net MVC?
body: <p>Im stuck trying to call a method every 10 seconds, I read about timers and threads but the problem is that i do not know where to put the method to be fired, MVC projects have a Main?</p>
  
  <pre><code>    private async Task ActualizarPrecios()
        {
          Entities model = new Entities();
          var transaciones = model.Transacciones.Where(a =&gt; a.ESTADO == 
           true).ToList();
          string Url = ObtenerUrl(model);
  
          ApiForex.IniciarCliente();
  
          ProcesarRequest procesar = new ProcesarRequest();
          JObject divisas = await procesar.CargarJson(Url);
  
          foreach(Transacciones item in transaciones)
          {
            item.PRECIO_ACTUAL = (string)divisas["rates"][item.DIVISA] 
          ["rate"];
          }
          model.SaveChanges();
       }
  </code></pre>
  
  <p>The code that is to upload some columns of tables in the database. I dont know how to fire this method every x seconds</p>