public IActionResult Index(int index) { var run = _runFinder.GetByIndex(index); var viewmodel = new RunDetailViewModel(run); viewmodel.FirstAdvancement = _quickestEventEnhancer.Extend(run.Import); viewmodel.PlayerEvents = _playerEventEnhancer.Extend(run.Import); viewmodel.MapRender = _renderState.Get(run.Analytics.Worldname); return(View(viewmodel)); }
public IActionResult Name(string worldname) { var run = _runFinder.GetByName(worldname); var viewmodel = new RunDetailViewModel(run); viewmodel.FirstAdvancement = _quickestEventEnhancer.Extend(run.Import); viewmodel.PlayerEvents = _playerEventEnhancer.Extend(run.Import); viewmodel.MapRender = _renderState.Get(worldname); viewmodel.OverviewerUrl = _config.OverviewerUrl.ToString(); return(View("Index", viewmodel)); }