Ejemplo n.º 1
0
        public async Task <IActionResult> UserList(string queryKey)
        {
            var apiMsg = await ApiMessage.Wrap(async() =>
            {
                var userInfoList = await userAccountBusiness.QueryUserByKey(queryKey);
                return(userInfoList.Select(x => new
                {
                    avatar = x.Avatar,
                    userId = x.Id,
                    nickName = x.NickName
                }));
            });

            return(Json(apiMsg));
        }