// GET: ModeloCars/Create public async Task <IActionResult> Create() { ViewData["FabricanteId"] = new SelectList(await _fabricanteService.FindAllAsync(), "Id", "Nome"); return(View()); }
// GET: Fabricantes public async Task <IActionResult> Index() { var list = await _fabricanteService.FindAllAsync(); return(View(list)); }