public IActionResult Edit(int Id) { if (Id == null) { return(NotFound()); } var obj = _estoqueService.FindById(Id); ViewBag.IdSetor = _setorService.FindAll(); return(View(obj)); }
public IActionResult Delete(int?id) { if (id == null) { return(NotFound()); } //se for valido o ID var estoque = _estoqueService.FindById(id.Value); if (estoque == null) { return(NotFound()); } return(View(estoque)); }