Пример #1
0
 public static SpecificationList <TEntity> AndIsValid <TEntity>(this SpecificationList <TEntity> specification, Func <TEntity, bool> selector)
 => specification.AndIsValid(selector, c => true, false, "Invalid value", null);
Пример #2
0
 public static SpecificationList <TEntity> AndIsValid <TEntity>(this SpecificationList <TEntity> specification, Func <TEntity, bool> selector, bool condition, string message, params object[] args)
 => specification.AndIsValid(selector, c => condition, false, message, args);