示例#1
0
        public Task NotifyAsync(string email, Notification notification)
        {
            var notificationModel = new NotificationModel()
            {
                Recipient = email,
                Subject   = "History in Paderborn Notification",
                Action    = notification.TypeName,
                Date      = DateTime.Now,
                Topic     = notification.Topic.Title,
                Updater   = notification.Updater.FullName ?? notification.Updater.Email
            };

            return(_emailClient.EmailNotificationPostAsync(notificationModel));
        }