//private ItemContext db = new ItemContext(); public ActionResult Index() { IEnumerable <Item> ListaItems = _item.Lista(); if (ListaItems.ToList().Count == 0) { this.ShowMessage("Nenhum item cadastrado!"); } return(View(ListaItems)); }
//private ItemContext db = new ItemContext(); public ActionResult Index() { IEnumerable <Item> ListaItems = _item.Lista(); if (ListaItems.ToList().Count == 0) { this.ShowMessage("Nenhum item cadastrado!"); } return(View(ListaItems)); }