예제 #1
0
        public ActionResult ActualizaNews(int?Id)
        {
            var News = _bl3.ConsultarNews().ToList();

            foreach (var a in News)
            {
                if (Id == a.Id)
                {
                    ViewBag.Artista  = a.Artista;
                    ViewBag.TNoticia = a.TNoticia;
                    ViewBag.foto     = a.foto;
                    ViewBag.DNoticia = a.DNoticia;
                }
            }
            return(RedirectToAction("Noticias"));
        }