Exemple #1
0
        public ActionResult DeletarNoticia(int id)
        {
            Noticia noticia = new Noticia();

            noticia = noticia.Busca_Noticias_ID(id)[0];
            return(View(noticia));
        }
Exemple #2
0
        public ActionResult DeletarNoticia(FormCollection form, int id)
        {
            Noticia noticia = new Noticia();

            noticia = noticia.Busca_Noticias_ID(id)[0];
            noticia.Deletar(noticia);
            return(View(noticia));
            //return RedirectToAction("ListarAluno");
        }
Exemple #3
0
        public ActionResult AlterarNoticia(int id)
        {
            Noticia noticia = new Noticia();

            return(View(noticia.Busca_Noticias_ID(id)[0]));
        }