Example #1
0
 public async Task <IActionResult> PostSecret([FromServices] HttpPostRegisterSecret command)
 {
     if (command == null)
     {
         throw new ArgumentNullException(nameof(command));
     }
     return(await command.Execute());
 }
Example #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());
        }
Example #3
0
 public async Task <IActionResult> PostSecret([FromBody] SecretArgs _, [FromServices] HttpPostRegisterSecret command)
 {
     return(await command.Execute());
 }