Beispiel #1
0
        public IActionResult Index()
        {
            _context.LogEvent("User accessed home index", _accessor.HttpContext.Connection.RemoteIpAddress.ToString());

            var events   = _context.ReadAllEvents().ToList();
            var projects = _context.ReadAllProjects().ToList();

            var vm = new HomeViewModel()
            {
                Events   = events,
                Projects = projects
            };

            return(View(vm));
        }
Beispiel #2
0
        public IActionResult Index()
        {
            var projects = _db.ReadAllProjects();

            return(View(projects));
        }