public async Task <IActionResult> PostAuthorise([FromBody] AuthorisationArgs args, [FromServices] HttpPostAuthoriseCommand command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } _Logger.LogInformation("POST lab confirmation triggered."); return(await command.Execute(args)); }
public async Task <IActionResult> PostAuthorise([FromBody] AuthorisationArgs args, [FromServices] HttpPostAuthoriseCommand command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } _Logger.WriteLabStart(); return(await command.ExecuteAsync(args)); }