예제 #1
0
 public static void AddCommonError(this ModelStateDictionary controller, string message)
 {
     if (!controller.IsValid && controller.Keys.Any(key => key.IsNotNullOrEmpty()))
     {
         controller.AddFirstToKey(string.Empty, message);
     }
 }