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); } }