Пример #1
0
        public ActionResult <IEnumerable <RegionSet> > GetBrowseableRegionSets(string searchTerm = null)
        {
            var userId = User.GetUserId();
            var browseableRegionSets = _worldService.GetViewableRegionSets(userId, searchTerm);

            if (browseableRegionSets != null && browseableRegionSets.Any())
            {
                browseableRegionSets = browseableRegionSets.OrderByDescending(srs => srs.LastEdit).ToList();
            }
            return(Ok(browseableRegionSets));
        }