using NLog; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ULA.Cathay.CreditoModel.Credito; using ULA.Cathay.CreditoModel.DAL.Credito; namespace ULA.Cathay.CreditoModel.BL.Credito { public class EtapasBL { private static Logger logger = LogManager.GetLogger("GestionesVariasBL"); public string IDLogger; public List Obtener(string DescripcionEtapa = null) { EtapasDAL EtapasDAL = new EtapasDAL(); List listaEtapas = new List(); try { listaEtapas = EtapasDAL.Obtener(DescripcionEtapa); return listaEtapas; } catch (TimeoutException ex) { logger.Error(IDLogger + " Error : Obtener" + "=" + ex.Message + ex.StackTrace); throw ex; } catch (Exception ex) { logger.Error(IDLogger + " Error : Obtener" + "=" + ex.Message + ex.StackTrace); throw ex; } finally { EtapasDAL = null; } } } }