title: i have process it search in all dir in hard drive its take about 15 min
body: <p>i have process it search in all dir in hard drive its take about 15 min how i run parallel with normal  process in web</p>
  
  <pre><code>public class HomeController : Controller
  {
      private RapetsDbContext db = new RapetsDbContext();
     public HomeController()
      {
    // i try to call it here with Parallel.Invoke  but  the index waiting  my  dirs() func  to end  
  
         Parallel.Invoke(() =&gt; Index(), () =&gt; helperCodes.dirs());
      }
      public ActionResult Index()
      {
  
  
          ViewBag.Title = "Home Page";
  
          return View();
      }
  }
  </code></pre>