public async Task <IActionResult> PostSMS([FromBody] SendSMSRequest request, CancellationToken cancellationToken) { Logger.LogInformation(JsonConvert.SerializeObject(request)); SendSMSCommand command = SendSMSCommand.Create(request); await this.CommandRouter.Route(command, cancellationToken); return(this.Ok(command.Response)); }
public static SendSMSCommand GetSendSmsCommand() { return(SendSMSCommand.Create(GetSendSmsRequest())); }