public async Task SendVerificationCodeAsync(EmailVerification emailVerification)
        {
            int verificationCode;

            if (emailVerification.ExpirationTime <= DateTime.Now)
            {
                verificationCode = _accountService.GenerateRandomNo(1000, 9999);
                bool succeeded = await _verificationRepository.UpdateVerificationCodeAsync(emailVerification.Email, verificationCode);
            }
            else
            {
                verificationCode = emailVerification.VerificationCode;
            }

            string subject = "Verification Code - Brix ";
            //string subject = ConfigurationManager.AppSettings["VerificationEmailSubject"];

            // string body = $"Hello {email} </br>  your verify number is {code} </br><a href='http://*****:*****@"Hello " + email + "</br>  your verify number is " + code + "</br><a href='http://*****:*****@"
                    <head> 
                        <style> 
                            body{background-color:cadetblue;direction:rtl;text-align:center;}
                            h1,h3,p{font-size:20px; text-align:center;color:blue;}
                        </style>
                    </head>
                    <body>";

            htmlText += "<h1> hello " + emailVerification.Email + "  </h1>" +
                        "<p>" + " your verify number is " + verificationCode + " </p>" +
                        " </ br >< a href = 'http://localhost:4200/verification' > our site </ a > " +
                        "</body>";
            await SendEmail(emailVerification.Email, subject, htmlText);
        }
        public async Task ReSendVerificationCodeAsync(string email)
        {
            var minutes = ConfigurationManager.GetSection("someMinutesForVerificationEmail");

            if (minutes == null)
            {
                minutes = 5;
            }

            EmailVerification emailVerification = new EmailVerification()
            {
                Email            = email,
                ExpirationTime   = DateTime.Now.AddMinutes(Convert.ToDouble(minutes)),
                VerificationCode = GenerateRandomNomber(1000, 9999)
            };
            await _verificationRepository.UpdateVerificationCodeAsync(emailVerification);

            await SendEmailWithVerificationCodeAsync(emailVerification);
        }