public async Task <IActionResult> SendMessage(TicketRequest request)
        {
            var response = await sqsService.SendMessageToSqsQueue(request);

            if (response == null)
            {
                return(BadRequest());
            }
            return(Ok());
        }
Пример #2
0
        public async Task <ActionResult <TicketResponse> > SendMessage([FromBody] TicketRequest ticketRequest)
        {
            var response = await _sqsService.SendMessageToSqsQueue(ticketRequest);

            if (response == null)
            {
                return(BadRequest());
            }

            return(Ok(response));
        }