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