public async Task <IActionResult> Create(Fornecedor fornecedor) { if (ModelState.IsValid) { await _fornecedorRepositorio.Inserir(fornecedor); return(RedirectToAction(nameof(Index))); } return(View(fornecedor)); }