public async Task SendThankYouMail(SchedulerContext db, EmailRecipient item, EmailTrack track)
        {
            await SendThankYouMail(item, track);

            track.IsThankYouMailSent = true;

            await db.SaveChangesAsync();
        }
        public async Task SendReminderMail(SchedulerContext db, EmailRecipient item, EmailTrack track)
        {
            await SendReminderEmail(item, track);

            track.LastRemindedDate = DateTime.Today;
            track.ReminderCount++;

            await db.SaveChangesAsync();
        }
        private async Task SendThankYouMail(EmailRecipient item, EmailTrack track)
        {
            StringBuilder contructMail = new StringBuilder();

            contructMail.AppendLine("<p>Hi, </p>");
            contructMail.AppendLine("<p></p>");
            contructMail.AppendLine("<p>Thank you for clicking the link in our previous mail.</p>");

            await MailClient.SendMailAsync(item.Email, item.Name, "Welcome mail", contructMail.ToString());
        }
        private async Task SendReminderEmail(EmailRecipient item, EmailTrack track)
        {
            StringBuilder contructMail = new StringBuilder();

            contructMail.AppendLine("<p>Hi, </p>");
            contructMail.AppendLine("<p></p>");
            contructMail.AppendLine("<p>In case you might have missed our previous mail.</p>");
            contructMail.AppendLine("<p>Please click below link.</p>");

            String link = "https://localhost:44303/Home/Link/" + track.ReferenceCode;

            contructMail.AppendLine($"<p><a href=\"{link}\">{link}</a></p>");

            await MailClient.SendMailAsync(item.Email, item.Name, "Welcome mail", contructMail.ToString());
        }