Как лучше всего проверить модель в MVC.Net, где я хочу принять минимум/максимум.
Не отдельные значения min/max для поля. Но отдельные поля для пользователя указывают минимальный/максимальный.
public class FinanceModel{
public int MinimumCost {get;set;}
public int MaximumCost {get;set;}
}
Поэтому мне нужно убедиться, что MinimumCost всегда меньше максимальной.