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