Пример #1
0
 public virtual void MarkSeenBy(User user)
 {
     if (!MessageStatusForUsers.Any(x => x.User == user))
     {
         var status = new MessageStatus
         {
             Message    = this,
             User       = user,
             SeenAtDate = DateTime.UtcNow,
         };
         MessageStatusForUsers.Add(status);
     }
 }
Пример #2
0
 public virtual void MarkSeenBy(User user)
 {
     if (!MessageStatusForUsers.Any(x => x.User == user))
     {
         var status = new MessageStatus
         {
             Message = this,
             User = user,
             SeenAtDate = DateTime.UtcNow,
         };
         MessageStatusForUsers.Add(status);
     }
 }