Example #1
0
        public async Task <IActionResult> Post([FromBody] MessageViewModel messageViewModel)
        {
            var response = await
                           _messager.SendSms(messageViewModel)
                           .ConfigureAwait(false);

            return(response ? Ok() : StatusCode(500));
        }