Exemplo n.º 1
0
        public IActionResult GetMessages()
        {
            if (!Validate())
            {
                return(null);
            }

            BLL_Chat          bll_chat = new BLL_Chat();
            List <ServerUser> list     = bll_chat.GetChatListOrderByTime(0, 10);

            return(Json(new
            {
                code = "200",
                count = list.Count,
                data = list
            }));
        }