TFS_ANTIGUO/SInCathay/ULA.Cathay.CreditoModel.DAL/Credito/MatrizOfertaDAL.cs

38 lines
958 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using ULA.Cathay.CreditoModel.Credito;
using Ultimus.Utilitarios;
namespace ULA.Cathay.CreditoModel.DAL.Credito
{
public class MatrizOfertaDAL
{
private UltimusLogs logger = new UltimusLogs("MatrizOfertaDAL");
private string _IDLogger;
public string IDLogger;
public CreditoContex db = new CreditoContex();
#region Obtener
public List<MatrizOferta> Obtener()
{
List<MatrizOferta> listaMatrizOferta = null;
try
{
listaMatrizOferta = new List<MatrizOferta>();
listaMatrizOferta = db.MatrizOferta.ToList();
}
catch (Exception ex)
{
logger.Error(IDLogger + " Error : Obtener " + "=" + ex.Message + ex.StackTrace);
}
return listaMatrizOferta;
}
#endregion
}
}