public async Task <IActionResult> SendCode(string phone) { if (!clientService.ValidatePhone(phone)) { return(BadRequest()); } await smsService.InvokeAsync(phone); return(Ok()); }