public bool TryRemoveOutfit(string aliasLower) { if (!OutfitsMap.TryRemove(aliasLower, out var outfitOut)) { return(false); } Outfits.RemoveAll(o => o.AliasLower == aliasLower); return(true); }
public bool TryRemoveOutfit(string aliasLower) { if (!OutfitsMap.TryRemove(aliasLower, out var outfitOut)) { return(false); } //var outfit = Outfits.FirstOrDefault(o => o.AliasLower == aliasLower); //if (outfit == null) //{ //return false; //} Outfits.RemoveAll(o => o.AliasLower == aliasLower); //_seedOutfitAliases.RemoveAll(alias => alias == aliasLower); //OutfitsMap.TryRemove(aliasLower, out var outfitOut); //_seedOutfitIds.RemoveAll(id => id == outfit.Id); return(true); }