示例#1
0
 public NotificationDto(SIXTReservationBL.Models.Domain.Notification n)
 {
     Id = n.Id;
     NotificationText = n.NotificationText;
     ReservationNum   = n.ReservationNo.ToString();
     Date             = n.CreateDate?.ToLongDateString();
     IsSeen           = n.IsSeen;
     SeenDate         = n.SeenDate?.ToString();
     URL = n.UrlNotification;
 }
示例#2
0
 public UserNotifications(SIXTReservationBL.Models.Domain.Notification n)
 {
     UserName     = n.ToUserNavigation?.FullName;
     Email        = n.ToUserNavigation?.Email;
     NotifiedDate = n.CreateDate;
 }