// GET: TiposController public async Task <ActionResult> Index() { var tipos = await _tipoRepository.ListAll(); return(View(tipos)); }
// GET: ProdutosController/Create public async Task <ActionResult> Create() { ViewBag.Tipos = new SelectList((await _tipoRepository.ListAll()), "id", "descricao"); return(View()); }