Exemple #1
0
        public Task <bool> SetRuleForTamagotchiAsync(int tamagotchiId, string ruleName, bool setActive)
        {
            if (setActive)
            {
                return(service.ActivateRuleForTamagotchiByIdAsync(tamagotchiId, ruleName));
            }

            return(service.DeactivateRuleForTamagotchiByIdAsync(tamagotchiId, ruleName));
        }