public IActionResult Create(string description) { if (_spelService.GetSpellen(_authService.Get()).Count(x => !x.Afgelopen() && !x.Cancelled) > 0) { return(new RedirectResult("/game")); } Spel spel = new Spel(); spel.Omschrijving = description; spel = _spelService.CreateSpel(spel); return(new RedirectResult($"/index.html?token={Base64UrlEncoder.Encode(spel.Speler1Token)}")); }