-
Notifications
You must be signed in to change notification settings - Fork 3
ActionAttribute
Navid Mehralizadeh edited this page Sep 28, 2019
·
3 revisions
This attribute has a property called Order
you can set value or leave the default value that is 1
. All action must be run with this order that you set after ensure of evaluating conditions. With this attribute, you will feel free to choose your specific name for action and you can have more than one action if you need.
Action methods do not return anything and does not pass any args for this function also.
[Action]
public void UpdateUserInfo()
{
// Call a service or business to update something or do anything that you must to do
Console.WriteLine("AccountRule Is passed too.");
}