Example #1
0
        public JsonResult OnlineNow()
        {
            uas = new UserAccounts();
            uas.GetOnlineUsers();

            uas.Sort(delegate(UserAccount p1, UserAccount p2)
            {
                return p2.LastActivityDate.CompareTo(p1.LastActivityDate);
            });

            return Json(new
            {
                Value = uas.ToUnorderdList
            });
        }
Example #2
0
        public JsonResult OnlineNow()
        {
            _uas = new UserAccounts();
            _uas.GetOnlineUsers();

            _uas.Sort(
                (p1, p2) => p2.LastActivityDate.CompareTo(p1.LastActivityDate));

            return Json(new
            {
                Value = _uas.ToUnorderdList
            });
        }
Example #3
0
        public ActionResult Online()
        {
            uas = new UserAccounts();
            uas.GetOnlineUsers();

            uas.Sort(delegate(UserAccount p1, UserAccount p2)
            {
                return p2.LastActivityDate.CompareTo(p1.LastActivityDate);
            });

            return View(uas);
        }
Example #4
0
        public ActionResult Online()
        {
            _uas = new UserAccounts();
            _uas.GetOnlineUsers();

            _uas.Sort(
                (p1, p2) => p2.LastActivityDate.CompareTo(p1.LastActivityDate));

            return View(_uas);
        }