I have the following two properties in my model:
[Display(ResourceType = typeof(WideFormatStrings), Name = "labelDynamicWidth")]
public int? SelectedDynamicWidth { get; set; }
[Display(ResourceType = typeof(WideFormatStrings), Name = "labelDynamicHeight")]
public int? SelectedDynamicHeight { get; set; }
How can i make a validation attribute that will check that at least one of them is less then some number .. say 100 (The number is a variable from the DB).