Пример #1
0
        public Map GetOrInsertByName(string mapName)
        {
            var map = _mapRepository.GetByName(mapName);

            if (map != null)
            {
                return(map);
            }
            map = new Map()
            {
                Name = mapName
            };
            _mapRepository.Insert(map);
            return(map);
        }