コード例 #1
0
        // GET: /Dashboard/Friends
        public ActionResult Friends()
        {
            var userId    = User.Identifier();
            var dashboard = this.profileCore.Load <ProfileMaster>(userId);

            var master = new ProfileMaster()
            {
                Display = profileCore.SearchSingle(userId, null, userId),
            };

            master.Friends = profileCore.Friends(master.Display, short.MaxValue);

            master.Manifest = (from p in master.Friends
                               where p.Longitude != 0 && p.Latitude != 0
                               select p).ToList();

            dashboard.Info = master;

            return(View(dashboard));
        }