public async Task <Endereco> ObterPorId(Guid id)
 {
     try
     {
         return(await _repositoryEndereco.ObterPorId(id));
     }
     catch (Exception ex)
     {
         _logger.LogError("EnderecoService.ObterAtivoPorEmpresa", ex.Message);
         throw new RecebaFacilException("Endereço não encontrado");
     }
 }
예제 #2
0
 public Endereco ObterPorId(int id)
 {
     return(_repository.ObterPorId(id));
 }