public void AddNameToCache(UniverseNameResponse universeName) { // If the item exists in the list, ignore. foreach (var un in NamesCache) { if (un.ID == universeName.ID) { return; } } // If you're still executing, this means the name is not in the list. Add it. NamesCache.Add(universeName); }
public DbUniverseName(UniverseNameResponse fromResponse) { Id = fromResponse.ID; Name = fromResponse.Name; Category = fromResponse.Name; }
public DbUniverseName(UniverseNameResponse fromResponse) { this.Id = fromResponse.ID; this.Name = fromResponse.Name; this.Category = fromResponse.Name; }