How can we dynamically configure and execute rules? For example, if we want to offer discounts to different types of customers—such as 10% for silver customers and 20% for gold customers—these rules should be configurable.
Interviews1 answer
How to validate some rules dynamically in .net?
1 Answer
Hi Alpesh,
For this you can use Rule Engine concept which is used widely to handle complex business operation & dynamic rules.
Check out this blog having implementation of rule engine.
https://softwarehut.com/blog/tech/design-patterns-rules-engine
Ayush GuptaPosted Sep 14, 2024, 12:20 PM EDT

