Beispiel #1
0
        public async Task <IEmail> CreateForUserCreatedAsync(User user)
        {
            var emailBodytemplate = await _templateFactory.CreateForUserCreatedAsync(user);

            var emailBodyTemplateRendered = await _templateService.RenderAsync <string>(emailBodytemplate);

            return(new Email
            {
                To = user.Email,
                Subject = "InventApp - User Created",
                Body = emailBodyTemplateRendered
            });
        }