Esempio n. 1
0
 private bool IsAnyNullOrEmpty(OrderDTO order)
 {
     foreach (PropertyInfo pi in order.GetType().GetProperties())
     {
         if (pi.PropertyType == typeof(string))
         {
             string value = (string)pi.GetValue(order);
             if (string.IsNullOrWhiteSpace(value))
             {
                 return(true);
             }
         }
     }
     return(false);
 }