Example #1
0
        public JsonResult LoadUserTalk(string uid)
        {
            List<ChatContent> chats = new List<ChatContent>();
            string to = string.Empty;
            UsersEntity user = new UsersEntity();
            ChatBLL cbll = new ChatBLL();
            if (Session["User"] != null)
            {
                user = Session["User"] as UsersEntity;
                //uid ==fromuid ,user.id ==currentuser
                chats = cbll.GetUserChat(uid,user.Id);
            }

               return this.Json(chats, JsonRequestBehavior.AllowGet);
        }