public void SetMessage(string message, string from, string to, string fromGuid, string toGuid) { List <MessageCls> m = (List <MessageCls>)HttpContext.Current.Cache["MSG"]; MessageCls msg = new MessageCls(from, to, message, DateTime.Now.ToString(), fromGuid, toGuid); m.Add(msg); }