private void SendSmsWithConfirmationCode(DAL.User user) { // Task.Factory.StartNew(() => { Authenticator.TOTP oneTimePasswordValidator = new Authenticator.TOTP(user.Secret, 30, 6); int code = oneTimePasswordValidator.Now(); Authenticator.SmsSender sender = new Authenticator.SmsSender(); sender.SendSMS(user.PhoneNumber, code); }//); }