internal static List<NotificationModel> MapNotifications(Notification[] notifications) { var result = new List<NotificationModel>(); foreach (var notification in notifications) result.Add(Mappers.MapNotification(notification)); return result; }
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, }; }