public IActionResult Index() { ViewBag.UserName = HttpContext.Session.GetString("_UserName"); Noticia noticiaModel = new Noticia(); ViewBag.Noticias = noticiaModel.ReadAll(); return(View()); }
public IActionResult Index() { ViewBag.Home = _noticia.ReadAll(); return(View()); }
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