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 }); }
public JsonResult OnlineNow() { _uas = new UserAccounts(); _uas.GetOnlineUsers(); _uas.Sort( (p1, p2) => p2.LastActivityDate.CompareTo(p1.LastActivityDate)); return Json(new { Value = _uas.ToUnorderdList }); }
public ActionResult Online() { uas = new UserAccounts(); uas.GetOnlineUsers(); uas.Sort(delegate(UserAccount p1, UserAccount p2) { return p2.LastActivityDate.CompareTo(p1.LastActivityDate); }); return View(uas); }
public ActionResult Online() { _uas = new UserAccounts(); _uas.GetOnlineUsers(); _uas.Sort( (p1, p2) => p2.LastActivityDate.CompareTo(p1.LastActivityDate)); return View(_uas); }