// // GET: /Produto/ public ActionResult Index() { var repoCategorias = new Repositorio<Categoria>(); var categorias = repoCategorias.Todas().ToList().Where(x => x.SubCategorias.Count >0); ViewBag.Categorias = categorias.OrderBy(x => x.Ordem); return View(); }