Esempio n. 1
0
        public bool ExecuteTwoFactorTask(int id)
        {
            var query = DB.Employee_Details.Where(w => w.LoginId == id);

            try
            {
                _EmailService
                .AddRecipientId(query.Select(s => s.Email).FirstOrDefault(), query.Select(s => s.Employee_Login.TwoFKey).FirstOrDefault())
                .SendVerificationLink();
                return(true);
            }
            catch (Exception e) { return(false); }
        }