forked from ddrilling/AsbCloudServer
Фикс валидации Dto в РТК план
This commit is contained in:
parent
a4339534d2
commit
989b2287bf
@ -45,6 +45,6 @@ public abstract class ProcessMapPlanBaseDto : ChangeLogAbstract, IId, IWellRelat
|
|||||||
public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
||||||
{
|
{
|
||||||
if (DepthEnd <= DepthStart)
|
if (DepthEnd <= DepthStart)
|
||||||
yield return new("Глубина окончания должна быть больше глубины начала", new string[] { nameof(DepthEnd), nameof(DepthStart) });
|
yield return new("Глубина окончания должна быть больше глубины начала", new string[] { nameof(DepthEnd) });
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user