Example #1
0
 public IEnumerable <ValidationResult> Validate(ValidationContext validationContext)
 {
     if (!Shipments.Any(s => s.IsSelected))
     {
         yield return(new ValidationResult(UploadChoiceViewModelResources.ShipmentRequired, new[] { "Shipments" }));
     }
 }
Example #2
0
 private bool CanRemoveShipments()
 {
     return(Shipments != null && Shipments.Any(x => x.IsSelected));
 }