コード例 #1
0
 public ReturnObject addToGamemode(int deckId, Gamemode mode)
 {
     if (viewDeck.getGamemodes(deckId).Contains(mode))
     {
         return(new ReturnObject(false, "Deck is already in Gamemode."));
     }
     else
     {
         carddeckRepository.addToGamemode(deckId, mode);
         return(new ReturnObject(true, "Deck added to Gamemode."));
     }
 }