public IActionResult ObterPorId(int id) { Empresa empresa = _empresaServico.ObterPorId(id); if (empresa == null) { return(NotFound()); } return(Ok(empresa.TransformarModelEmView())); }