예제 #1
0
        public static string GetMsg(int groupId, string msg)
        {
            ChatBLL     bll       = new ChatBLL();
            DateTime    laterThen = Util.StringToDateTimeHHmmSS(msg) ?? DateTime.MinValue;
            List <Chat> logs      = bll.find(groupId, laterThen);

            return(logs.ToJSON());
        }
예제 #2
0
        public static string SendMsg(int groupId, string msg)
        {
            ChatBLL bll = new ChatBLL();

            bll.insert(groupId, 1, msg);

            return("{status:\"success\"}");
        }