예제 #1
0
        private async Task <bool> IsPointInvalid(float point)
        {
            Rule rule = await ruleRepository.GetDefaultRule();

            int maxPoint = rule == null ? 10 : rule.MaxPoint;

            if (point < 0 || point > maxPoint)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }