Business rules #3282
-
I'm working on CSLA v.5.5.3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
For some of the example rules it's returning |
Beta Was this translation helpful? Give feedback.
-
I put my 'main' logic in Execute method. Some of the following are examples.
The default is context.AddSuccessResult() but majority of our business rules call context.AddErrorResult() context.AddOutValue is only used when you want to set value of your business property from within your business rule. In our projects, I use a Resource file to get 'messages' for my business rules. |
Beta Was this translation helpful? Give feedback.
I put my 'main' logic in Execute method. Some of the following are examples.
The default is context.AddSuccessResult() but majority of our business rules call context.AddErrorResult()
context.AddOutValue is only used when you want to set value of your business property from within your business rule.
In our projects, I use a Resource file to get 'messages' for my business rules.