public ActionResult GetNumbersWithLongestLength(int? count=20) { ViewBag.Title = "Home Page"; var a = new AnalysisTwoLastNumber(); ViewBag.NumbersWithLongestLength = a.GetNumbersWithLongestLength(count.HasValue ? count.Value : 20); return View("Index"); }
public ActionResult AnalyseData() { ViewBag.Title = "Home Page"; var a = new AnalysisTwoLastNumber(); a.BuildSourceToAnalyse(); a.AnalyseData(); return Redirect(string.Format("/{0}/Index?analyzed={1}", ControllerContext.RouteData.Values["controller"], true)); }
// GET: Data public ActionResult Index() { var m = new DataAdminModel(); var f = new DataFetcherBase(); var a = new AnalysisTwoLastNumber(); m.LatestAnalyzedDate = a.LatestAnalyzedDate; m.NumberOfRecords = f.NumberOfRecord; m.LatestRecordedDate = f.LatestRecordedDate; m.OldestRecordedDate = f.OldestRecordedDate; return View(m); }