public JsonResult SendingSmsCode(string phone) { phone = _smsService.ConvertToDefaultPhoneNumber(phone); var generatedCode = _smsService.CreateCodeFromSms(); _smsService.SendSMS(phone, $"[Test] Код подтверждения регистрации на сервисе MyApptechka: {generatedCode}"); return(Json(generatedCode)); }