29 lines
818 B
C#
29 lines
818 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Ultimus.Utilitarios;
|
|
using ULA.Cathay.CreditoModel.Credito;
|
|
namespace ULA.Cathay.CreditoModel.DAL.Credito
|
|
{
|
|
public class CondicionesVariasDAL
|
|
{
|
|
UltimusLogs logs = new UltimusLogs("CondicionesVariasDAL");
|
|
|
|
public ICollection<CondicionesVarias> Obtener()
|
|
{
|
|
ICollection<CondicionesVarias> _model = null;
|
|
try
|
|
{
|
|
using (CreditoContex db = new CreditoContex())
|
|
_model = db.CondicionesVarias
|
|
.Where(x => x.Habilitado == true).ToList();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
logs.Error(ex);
|
|
throw ex;
|
|
}
|
|
return _model;
|
|
}
|
|
}
|
|
}
|