Ejemplo n.º 1
0
        public static Task <IEnumerable <ValidationError> > ValidateAsync(RuleAction action)
        {
            Guard.NotNull(action, nameof(action));

            var visitor = new RuleActionValidator();

            return(action.Accept(visitor));
        }
Ejemplo n.º 2
0
 public static RuleActionDto Create(RuleAction properties)
 {
     return(properties.Accept(Instance));
 }