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