public virtual async Task SendSmsAsync(ApplicationMessage message)
 {
     if (_userManager.SmsService != null)
     {
         await _userManager.SmsService.SendAsync(message.ToIdentityMessage());
     }
 }
 public async Task<ActionResult> AddPhoneNumber(AddPhoneNumberViewModel model)
 {
     if (!ModelState.IsValid)
     {
         return View(model);
     }
     // Send result of: _userManager.GetPhoneNumberCodeAsync(UserId, phoneNumber);
     // Generate the token and send it
     var code = await _userManager.GenerateChangePhoneNumberTokenAsync(UserId, model.Number);
     var message = new ApplicationMessage
     {
         Destination = model.Number,
         Body = "Your security code is: " + code
     };
     await _userManager.SendSmsAsync(message);
     return RedirectToAction("VerifyPhoneNumber", new { PhoneNumber = model.Number });
 }