public async Task <IActionResult> LeagueOptions() { var supportedYears = await _fantasyCriticService.GetSupportedYears(); var openYears = supportedYears.Where(x => x.OpenForCreation).Select(x => x.Year); IReadOnlyList <EligibilityLevel> eligibilityLevels = await _fantasyCriticService.GetEligibilityLevels(); LeagueOptionsViewModel viewModel = new LeagueOptionsViewModel(openYears, DraftSystem.GetAllPossibleValues(), PickupSystem.GetAllPossibleValues(), ScoringSystem.GetAllPossibleValues(), eligibilityLevels); return(Ok(viewModel)); }