private Notification Notification(ENotification eNotification)
        {
            return(new Notification
            {
                CreatedDate = eNotification.CreatedDate,
                UpdatedDate = eNotification.UpdatedDate,

                CreatedBy = eNotification.CreatedBy,
                UpdatedBy = eNotification.UpdatedBy,

                NotificationId = eNotification.NotificationId,
                Sender = eNotification.Sender,
                Password = eNotification.Password,
                Body = eNotification.Body,
                Receiver = eNotification.Receiver,
            });
        }
Exemplo n.º 2
0
 public Notification(string text, ENotification level = ENotification.Information)
 {
     Text  = text;
     Level = level;
 }
Exemplo n.º 3
0
 private void SetNotification(string text, ENotification level)
 {
     Notifications.Add(new Notification(text, level));
 }