|
@@ -1,5 +1,4 @@
|
|
|
using System.Linq;
|
|
|
-using FluentResults;
|
|
|
using InABox.Core;
|
|
|
|
|
|
namespace Comal.Classes
|
|
@@ -70,9 +69,16 @@ namespace Comal.Classes
|
|
|
|
|
|
}
|
|
|
|
|
|
- private static Result<double> CheckProposalOverride(QuoteContractProposal? proposal, double value)
|
|
|
+ private static Result<double, string> CheckProposalOverride(QuoteContractProposal? proposal, double value)
|
|
|
{
|
|
|
- return proposal?.OverridePrice == true ? Result.Fail("") : Result.Ok(value);
|
|
|
+ if(proposal?.OverridePrice == true)
|
|
|
+ {
|
|
|
+ return Result.Error("");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Result.Ok(value);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|