public IEnumerable <Message> GetByProject(int projectID)
        {
            var messages = messageDao.GetByProject(projectID)
                           .Where(CanRead)
                           .ToList();
            var commentsCount = commentDao.Count(messages.ConvertAll(r => (ProjectEntity)r));

            return(messages.Select((message, index) =>
            {
                message.CommentsCount = commentsCount[index];
                return message;
            }));
        }