public ActionResult OnGet() { LatestNews = _newsService.GetLatest(); Version = _configuration["Version"]; Majors = _majorService.GetAllActive().ToList(); return(Page()); }
public Task <ViewViewComponentResult> InvokeAsync(bool publicPage = true) { var list = _majorService.GetAllActive().ToList(); return(Task.FromResult(View("Footer", list))); }