public static void NotEmpty(byte[] value, string parameterName)
 {
     if (value.Length <= 0)
     {
         throw new DomainException(DomainPreconditionMessages.GetNotEmpty(parameterName));
     }
 }
 public static void NotEmpty(string value, string parameterName)
 {
     if (string.IsNullOrWhiteSpace(value))
     {
         throw new DomainException(DomainPreconditionMessages.GetNotEmpty(parameterName));
     }
 }