Esempio n. 1
0
        public async Task SendEmailParticipantService(IEnumerable <FriendDTO> friends)
        {
            foreach (var friend in friends)
            {
                var viewModel = new
                {
                    Friend = friend,
                    Date   = DateTime.Now.ToString("dd/MM/yyyy")
                };

                var html = _emailTemplate.GenerateTemplateDrawEmail(DrawEmailTemplate, viewModel);

                await SendEmailService(friend.Email, await html);
            }
        }