예제 #1
0
        public async Task <IActionResult> SendCode(string phone)
        {
            if (!clientService.ValidatePhone(phone))
            {
                return(BadRequest());
            }

            await smsService.InvokeAsync(phone);

            return(Ok());
        }