I have these 2 properties in a model
public class Geometria
{
public int Id { get; set; }
public string Componente { get; set; }
[Range(0, float.MaxValue)]
public float ToleranciaInferior { get; set; }
[Range(0,float.MaxValue)]
public float ToleranciaSuperior { get; set; }
}
The property ToleranciaSuperior cannot be the same or equal as ToleranciaInferior.
How can i achieve this with annotations?