示例#1
0
        //
        // GET: /HallOfFame/

        public ActionResult Index(bool todos = false, string filtrar = null)
        {
            if (filtrar != null)
            {
                Estado e = Estado.obtenerEstadoConClave(filtrar);
                if (e == null)
                {
                    filtrar = null;
                    todos   = false;
                }
                else
                {
                    todos = true;
                }
            }

            int cabeceras;
            List <HallOfFamer> medallistas = HallOfFamer.obtenerMultimedallistas(out cabeceras, excluirNoOros: !todos, estado: filtrar);

            ViewBag.cabeceras = cabeceras;
            ViewBag.todos     = todos;
            ViewBag.estados   = Estado.obtenerEstados();
            ViewBag.filtro    = filtrar;
            return(View(medallistas));
        }
示例#2
0
        //
        // GET: /HallOfFame/Top3

        public ActionResult Top3()
        {
            ViewBag.olimpiadas = Olimpiada.obtenerOlimpiadas(TipoOlimpiada.OMI);
            return(View(HallOfFamer.obtenerTop3(TipoOlimpiada.OMI)));
        }