public IActionResult Get(int id) { try { return(Ok(_trocoRepository.ObterPorId(id))); } catch (Exception ex) { return(BadRequest(ex.ToString())); } }