Ejemplo n.º 1
0
        public IActionResult Holiny()
        {
            if (auth.User == null)
            {
                return(RedirectToAction("Index", "Login"));
            }

            var holinaTableModule = new HolinaTableModule(db);

            ViewData["Holiny"] = holinaTableModule.LoadHoliny();
            ViewData["Desc"]   = "  -  Mapa holin";
            return(View());
        }
Ejemplo n.º 2
0
        public IActionResult Holiny()
        {
            if (auth.User == null)
            {
                return(RedirectToAction("Index", "Login"));
            }

            var holinaTableModule = new HolinaTableModule(db);
            var graphData         = holinaTableModule.GetHolinyByYearArrays();

            ViewData["years"]  = graphData[0];
            ViewData["counts"] = graphData[1];
            return(View());
        }