public static ICollection<RuleResult> AddInfo(this ICollection<RuleResult> results, Rule rule, string message) { var result = new RuleResult(rule, RuleResultType.Info, message); results.Add(result); return results; }
public SaveException(RuleResult error) : this(error.Message) { FirstError = error; if (Errors == null) { Errors = new[] { error }; } }