35 lines
981 B
C#
35 lines
981 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using ULA.Cathay.CreditoModel.Credito;
|
|
using System.Data.Entity;
|
|
|
|
namespace ULA.Cathay.CreditoModel.DAL.Credito
|
|
{
|
|
|
|
public class CriterioSeleccionDAL
|
|
{
|
|
private Ultimus.Utilitarios.UltimusLogs logger = new Ultimus.Utilitarios.UltimusLogs("CriterioSeleccionDAL");
|
|
|
|
public List<CriterioSeleccion> Obtener()
|
|
{
|
|
List<CriterioSeleccion> listaCriterioSeleccion = new List<CriterioSeleccion>();
|
|
|
|
try
|
|
{
|
|
using (CreditoContex db = new CreditoContex())
|
|
{
|
|
listaCriterioSeleccion = (from d in db.CriterioSeleccion.Include(x => x.HojaSeleccion)
|
|
select d).ToList();
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
logger.Error(ex);
|
|
}
|
|
return listaCriterioSeleccion;
|
|
}
|
|
|
|
|
|
}
|
|
}
|