Created
August 18, 2011 00:09
-
-
Save mdarnall/1152978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BaseViewModel : IValidatable { | |
public LocationViewModel Origin { get; set;} | |
public LocationViewModel Dest { get; set; } | |
override IEnumerable<ValidationResult> Validate( ValidationContext context ) { | |
//copy ValidateFMViewModel logic | |
} | |
protected abstract LocationsCheckResult Check(string originToCheck, string destToCheck); | |
} | |
public class SearchCriteriaViewModel : BaseViewModel { ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment