public async Task <IActionResult> Stop(int id) { var gameServer = _context.GameServers .Include(s => s.HostServer) .FirstOrDefault(g => g.GameServerID == id); if (gameServer == null) { return(NotFound()); } await _service.StopGameServer(User, gameServer); return(RedirectToAction(nameof(Details), new { id })); }