How to validate some rules dynamically in .net?
Alpesh Maniya
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.
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