private ActionResult RebuildImpl(IIndex index) { try { var timer = new Stopwatch(); timer.Start(); index.CreateIndex(); var dataService = new TableDirectReaderDataService(); index.IndexItems(dataService.GetAllData()); timer.Stop(); return(View(timer.Elapsed.TotalSeconds)); } catch (Exception ex) { this.ModelState.AddModelError("DataError", ex.Message); return(View(0.0)); } }