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()); }
public static string SendMsg(int groupId, string msg) { ChatBLL bll = new ChatBLL(); bll.insert(groupId, 1, msg); return("{status:\"success\"}"); }