public async Task <IActionResult> ObterPorId(Guid id) { var reg = await _service.ObterPorIdView(id); if (reg == null) { return(NotFound()); } return(Ok(reg)); }