Beispiel #1
0
 /// <summary>
 /// Null check for nullable validatable objects
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public static ValidationResult ValidationCheck(this IValidatable input)
 {
     if (input == null)
     {
         return(new ValidationResult(false, "Null or Missing input."));
     }
     else
     {
         return(input.ValidateInput());
     }
 }