Ejemplo n.º 1
0
        public ActionResult Diplomas(string clave, string textoX, string textoY)
        {
            if (!esAdmin() || clave == null || textoX == null || textoY == null)
            {
                return(RedirectTo(Pagina.HOME));
            }
            ViewBag.omi = clave;

            string[] X       = textoX.Split(';');
            string[] Y       = textoY.Split(';');
            string   baseUrl = Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/');

            ViewBag.asistentes  = MiembroDelegacion.generarDiplomas(clave, X[0], baseUrl, Y);
            ViewBag.medallistas = Models.Resultados.generarDiplomas(clave, X[1], baseUrl);
            ViewBag.especiales  = Models.Resultados.generarDiplomasEspeciales(clave, baseUrl);

            return(View());
        }