public IEnumerable<ClientConnection> GetWPFConnectionsForProject(int projectId)
{
IList<ClientConnection> connections = new List<ClientConnection>();
var users = projectRepository.GetAllUsersInProject(projectId);
foreach (var user in users)
{
connections.Concat(SignalRClients.Connections.Where(x => x.UserName == user.UserName).ToList());
}
var creator = projectRepository.GetCreatorForProject(projectId);
List<ClientConnection> creatorConnections =
SignalRClients.Connections.Where(x => x.UserName == creator.UserName && x.IsWPFClient).ToList();
return connections.Concat(creatorConnections);
}