Esempio n. 1
0
        internal static List<NotificationModel> MapNotifications(Notification[] notifications)
        {
            var result = new List<NotificationModel>();

            foreach (var notification in notifications)
                result.Add(Mappers.MapNotification(notification));

            return result;
        }
Esempio n. 2
0
 private static NotificationModel MapNotification(Notification notification)
 {
     return new NotificationModel()
     {
         Id = notification.Id,
         Message = notification.Message,
         DateTime = notification.DateTime.ToString(),
         From = notification.From.FullName(),
         FromMail = notification.From.Email,
     };
 }