Exemplo n.º 1
0
        protected Task <CommandExecutionResult> OkAsync()
        {
            var result = new CommandExecutionResult
            {
                Success = true
            };

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

            return(Task.FromResult(result));
        }