public async Task <PavlovServerPublicMapListViewModel> GetMapCycleFromPavlovServer()
        {
            var result  = new PavlovServerPublicMapListViewModel();
            var servers = (await _pavlovServerService.FindAll()).ToArray();

            foreach (var server in servers)
            {
                if (server == null)
                {
                    continue;
                }
                if (server.ServerServiceState != ServerServiceState.active &&
                    server.ServerType == ServerType.Community)
                {
                    continue;
                }
                if (server.ServerType == ServerType.Event)
                {
                    continue;
                }
                result = await GetPavlovServerPublicMapListViewModel(server.Id);
            }


            return(result);
        }
        // GET
        public async Task <IActionResult> MapFromSerer(int serverId)
        {
            var result = new PavlovServerPublicMapListViewModel();
            var server = await _pavlovServerService.FindOne(serverId);

            if (server == null)
            {
                BadRequest();
            }
            result = await _publicViewListsService.GetPavlovServerPublicMapListViewModel(serverId);

            return(PartialView("MapFromServer", result));
        }
        public async Task <PavlovServerPublicMapListViewModel> GetPavlovServerPublicMapListViewModel(int serverId)
        {
            var tmp    = new PavlovServerPublicMapListViewModel();
            var server = await _pavlovServerService.FindOne(serverId);

            var serverInfo = await _pavlovServerInfoService.FindServer(serverId);

            var maps = await _serverSelectedMapService.FindAllFrom(server);

            tmp.MapList    = maps;
            tmp.ServerInfo = serverInfo;
            return(tmp);
        }