Ejemplo n.º 1
0
        //
        // GET: /Liste/
        public ActionResult Lister()
        {
            Liste liste = new Liste(Session["DB_REPO"]);

            String orderBy = "";
            // Si on veut sorter par quelque chose, il faut utiliser le sort spécial.
            if (Session["Liste_SortBy"] != null)
            {
                orderBy = (String)Session["Liste_SortBy"] + " " + (String)Session["Liste_SortOrder"];
                liste.SpecialSelectAll(orderBy);
            }
            else
            {

                liste.SelectAll();
            }

            //liste.SelectAll(orderBy);
            return View(liste.ToList());
        }