49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
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<Etapas> Obtener(string DescripcionEtapa = null)
|
|
{
|
|
EtapasDAL EtapasDAL = new EtapasDAL();
|
|
List<Etapas> listaEtapas = new List<Etapas>();
|
|
|
|
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;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|