MonoSoftware.MonoX.DAL.EntityClasses.SnMessageEntity.IsRead C# (CSharp) Метод

IsRead() публичный Метод

public IsRead ( System.Guid userId ) : bool
userId System.Guid
Результат bool
        public bool IsRead(Guid userId)
        {
            if (this.SnMessageRecipients != null)
            {
                SnMessageRecipientEntity recipient = this.SnMessageRecipients.FirstOrDefault(p => p.UserId.Equals(userId));
                return (recipient != null && recipient.DateRead.HasValue);
            }
            return false;
        }
SnMessageEntity