Example #1
0
        public JsonResult SendChat(string tid,string ctx)
        {
            ChatInfo cinfo = new ChatInfo();
            if (CurrentUser != null)
            {
                cinfo.user_from = CurrentUser.Id.ToString();
                cinfo.user_to = tid;
                cinfo.sendtime = DateTime.Now;
                cinfo.content = ctx;
                cinfo.ispublic = true;
                ChatBLL cbll = new ChatBLL();
                cbll.SaveChat(cinfo);

            }
            return this.Json("success", JsonRequestBehavior.AllowGet);
        }