Example #1
0
        protected Task <CommandExecutionResult> OkAsync()
        {
            var result = new CommandExecutionResult
            {
                Success = true
            };

            return(Task.FromResult(result));
        }
Example #2
0
        protected Task <CommandExecutionResult> FailAsync(Exception exception = null)
        {
            var result = new CommandExecutionResult
            {
                Exception = exception,
                Success   = false
            };

            return(Task.FromResult(result));
        }