Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        // 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);
        }