//public List<Email> ListarEmail(int numeroCarpeta, int ci) public List <Email> ListarEmail(Carpeta carpeta) { try { ServicioRemoting.ServicioEmails _objServicioE = new ServicioRemoting.ServicioEmails(); ILogicaCarpetas lc = FabricaLogica.getLogicaCarpetas(); //Carpeta c = lc.GetCarpeta(numeroCarpeta, ci); Carpeta c = lc.GetCarpeta(carpeta); List <Email> emails = new List <Email>(); if (c != null) { if (c.NOMBRE_CARPETA.ToUpper() == "ENVIADOS") { emails = _objServicioE.ListarEmailsEnviados(carpeta); } else if (c.NOMBRE_CARPETA.ToUpper() == "INBOX") { emails = _objServicioE.ListarEmailsRecibidos(carpeta); } else { emails = _objServicioE.ListarEmails(carpeta); } return(emails); } else { return(null); } } catch (Exception ex) { throw ex; } }
public Carpeta GetCarpeta(Carpeta c) { ILogicaCarpetas lc = FabricaLogica.getLogicaCarpetas(); return(lc.GetCarpeta(c)); }