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