Esempio n. 1
0
        public async Task<IActionResult> SearchMarkersByExportName(string searchPattern, int start, int pageSize)
        {
            GoNorthProject project = await _userProjectAccess.GetUserProject();
            List<KartaMapNamedMarkerQueryResult> markers = await _mapDbAccess.GetMarkersByExportName(project.Id, searchPattern);

            NamedMarkerQueryResult queryResult = new NamedMarkerQueryResult();
            queryResult.Markers = markers.Skip(start).Take(pageSize).ToList();
            queryResult.HasMore = start + queryResult.Markers.Count < markers.Count;
            return Ok(queryResult);
        }