Пример #1
0
 public ReturnObject removeFromGamemode(int deckId, Gamemode mode)
 {
     if (viewDeck.getGamemodes(deckId).Contains(mode))
     {
         carddeckRepository.removeFromGameode(deckId, mode);
         return(new ReturnObject(true, "Deck removed from Gamemode."));
     }
     else
     {
         return(new ReturnObject(false, "Deck does not exist in this Gamemode."));
     }
 }