public static XmlNode ObterXmlRecepcaoEventoNFe(NotaFiscal notaFiscal, XmlDocument xmlRecepcaoEventoNFe) { var uf = LojaDAO.Instance.GetUf(notaFiscal.IdLoja.Value)?.ToUpper() ?? string.Empty; if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Producao) { return(GetWebService.NFeRecepcaoEventoProducao(notaFiscal, null, uf).nfeRecepcaoEvento(xmlRecepcaoEventoNFe)); } else if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Homologacao) { return(GetWebService.NFeRecepcaoEventoHomologacao(notaFiscal, null, uf).nfeRecepcaoEvento(xmlRecepcaoEventoNFe)); } return(null); }