public IActionResult Index()
        {
            ViewBag.UserName = HttpContext.Session.GetString("_UserName");
            Noticia noticiaModel = new Noticia();

            ViewBag.Noticias = noticiaModel.ReadAll();
            return(View());
        }
Exemple #2
0
 public IActionResult Index()
 {
     ViewBag.Home = _noticia.ReadAll();
     return(View());
 }
Exemple #3
0
 public IActionResult Index()
 {
     ViewBag.Noticia = noticiaModel.ReadAll();
     return(View());
 }
 /// <summary>
 /// esse metodo é usado para retornar a view e demais alterações
 /// </summary>
 /// <returns>view</returns>
 public IActionResult Index(){
     ViewBag.Noticias = noticiaModel.ReadAll();
     return View();
 }//fim IactionResult