Пример #1
0
        public ActionResult ListMyFollowed()
        {
            var list = UserBarHelper.GetListFollowed(LoginHelper.LoginUser.UserID);
            // »ñÈ¡°ÉÃû
            var barinfo = BarHelper.GetList(list.Select(m => m.BarID).ToArray());

            return(Json(list.Select(m =>
            {
                var bar = barinfo.First(b => b.ID == m.BarID);
                return new
                {
                    m.CreateTime,
                    bar.ID,
                    bar.Name
                };
            })));
        }