Example #1
0
 public void MarkAsUnread(Account account)
 {
     foreach (var messagePerson in MessagePersons.Where(x => x.Account == account))
     {
         messagePerson.IsRead = false;
     }
 }
Example #2
0
 public bool IsRead(Account account) =>
 MessagePersons.Where(x => x.Account == account).Any(x => x.IsRead);