public Message SendMessage(string msg, ChatRoom c1) { if (msg.Length > 150) { return(null); } CommunicationLayer.IMessage message = CommunicationLayer.Communication.Send(c1.url, this.groupID, this.nickname, msg); Message m = new Message(message, this, groupID); DBmanager.AddMessagetoDB(message); DBmanager.AddMessagetoDB2(message); return(m); }