public static void EditDeck(string oldName, string newName, Card heroCard) { Deck deckToEdit = CurrentDecks.First(x => x.Name == oldName); deckToEdit.Name = newName; deckToEdit.HeroDbfId = heroCard.DbfId; }
public static void DeleteDeck(string deckName) { CurrentDecks.Remove(CurrentDecks.First(x => x.Name == deckName)); }