Method OnSuccess
OnSuccess(Func<Result>)
Executes specified function if result represents successful action.
public Result OnSuccess(Func<Result> func)
Parameters
Returns
- Result
Current result if action was not succeed; otherwise result of executing specified function.
OnSuccess(Action)
Executes specified function if result represents successful action.
public Result OnSuccess(Action action)
Parameters
action
ActionFunction to execute.
Returns
- Result
Current result if action was not succeed; otherwise executes specified action and returns OK result.