public void Send(Guid?From, Guid?To, string message, string type) { var dao = new ChatDAO(); dao.CreateContent(dao.CreateMessage(From, To).MESSAGE_Id, message, type); // Call the broadcastMessage method to update clients. Clients.All.broadcastMessage(From, To, message, type); }