public IActionResult GetById(long id) { var model = _estabelecimentoRepository.Find(id); if (model == null) { return(NotFound()); } return(new ObjectResult(model)); }