コード例 #1
0
 protected static void CheckRule(IModelStateRule rule)
 {
     if (rule.IsBroken())
     {
         throw new ModelStateValidationException(rule);
     }
 }
コード例 #2
0
 public ModelStateValidationException(IModelStateRule brokenRule) : base(brokenRule.Message)
 {
     BrokenRule = brokenRule;
 }