public IActionResult GetById(int id) { var entity = _repository.GetById(id); if (entity == null) { return(NotFound()); } return(Ok(entity)); }
public Estoque ObterPorId(int idEstoque) { return(repository.GetById(idEstoque)); }