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)); }
public IActionResult Index() { var projects = _db.ReadAllProjects(); return(View(projects)); }