Example #1
0
        public async Task <bool> CreateOrUpdateRule(ClothingRule rule)
        {
            var rowsAffected = await _clothingRuleRepository.Update(rule);

            if (rowsAffected == 0)
            {
                rowsAffected = await _clothingRuleRepository.Create(rule);
            }

            return(rowsAffected == 1);
        }
Example #2
0
        public async Task <bool> UpdateRule(ClothingRule rule)
        {
            var rowsAffected = await _clothingRuleRepository.Update(rule);

            return(rowsAffected == 1);
        }