public IActionResult IndexById(string id)
        {
            var playerId = Guid.Parse(id).ToString();
            var runs     = _runFinder.GetAll();

            var viewmodel = new AccountIndexViewModel(playerId);

            viewmodel.Attemps = runs.Count(x => x.Players.Any(y => y.Id == playerId));

            return(View("Index", viewmodel));
        }
Example #2
0
        public IActionResult Garbage()
        {
            var runs      = _runFinder.GetAll();
            var header    = _listConverter.Convert(runs);
            var viewmodel = new RunListViewModel(header);

            return(View(viewmodel));
        }