private Task SendConfirmCodeAsync(ApplicationUser user, string confirmCode, MessageSenderType senderType)
        {
            var userModel = Mapper.Map <UserModel>(user);

            m_messageSenderManager.SendMessage(userModel, senderType, m_translator.Translate("confirmation-code-subject"),
                                               string.Format(m_translator.Translate("confirmation-code-message"), user.UserName, confirmCode));

            return(Task.CompletedTask);
        }
        public async Task GenerateTwoFactorTokenAsync(ApplicationUser user, string provider = null)
        {
            provider = GetProvider(provider);

            var token = await m_userManager.GenerateTwoFactorTokenAsync(user, provider);

            var senderType = m_messageSenderTokenProviderAssociationManager.GetSenders(provider);

            var userModel = Mapper.Map <UserModel>(user);

            m_messageSenderManager.SendMessage(userModel, senderType,
                                               m_translator.Translate("login-security-code-subject"),
                                               string.Format(m_translator.Translate("login-security-code-message"), user.UserName, token));
        }