Example #1
0
        public ActionResult RedirecionarConteudo()
        {
            ConteudoFacade   conteudoFacade   = new ConteudoFacade();
            MultimidiaFacade multimidiaFacade = new MultimidiaFacade();
            UsuarioFacade    usuarioFacade    = new UsuarioFacade();

            int codigo = Convert.ToInt32(Request.QueryString["NewsID"]);

            Conteudo conteudo = conteudoFacade.PesquisarConteudo(codigo);

            HttpContext.Response.StatusCode = 302;
            HttpContext.Response.Clear();

            return(Redirect(string.Format("{0}/{1}/{2}", conteudo.GetType().ToString().Replace("AltaMontanha.Models.Dominio.", "").Replace("Coluna", "Colunas"), conteudo.Codigo, conteudo.Slug)));
        }
        public ActionResult RedirecionarConteudo()
        {
            ConteudoFacade conteudoFacade = new ConteudoFacade();
            MultimidiaFacade multimidiaFacade = new MultimidiaFacade();
            UsuarioFacade usuarioFacade = new UsuarioFacade();

            int codigo = Convert.ToInt32(Request.QueryString["NewsID"]);

            Conteudo conteudo = conteudoFacade.PesquisarConteudo(codigo);

            HttpContext.Response.StatusCode = 302;
            HttpContext.Response.Clear();

            return Redirect(string.Format("{0}/{1}/{2}", conteudo.GetType().ToString().Replace("AltaMontanha.Models.Dominio.", "").Replace("Coluna", "Colunas"), conteudo.Codigo, conteudo.Slug));
        }