Exemplo n.º 1
0
 public async Task <IActionResult> PostSecret([FromServices] HttpPostRegisterSecret command)
 {
     if (command == null)
     {
         throw new ArgumentNullException(nameof(command));
     }
     return(await command.Execute());
 }
Exemplo n.º 2
0
        public async Task <IActionResult> PostSecret([FromServices] HttpPostRegisterSecret command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

            _Logger.LogInformation("POST register triggered.");
            return(await command.Execute());
        }
Exemplo n.º 3
0
 public async Task <IActionResult> PostSecret([FromBody] SecretArgs _, [FromServices] HttpPostRegisterSecret command)
 {
     return(await command.Execute());
 }