'let me know how can we use "otherwise" in fluent validation
can we use otherwaise like this
RuleFor(product => product.DamagedProductsByCases)
.Equal(product => product.ReceivedNumberOfCases)
.WithMessage("* Should be equal to received case")
.Otherwise(() => {
RuleFor(product => product.DamagedProductsByCases).Equal(0);
});
emphasized text
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
