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

34 lines
809 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 CatalogosDAL
{
UltimusLogs logs = new UltimusLogs("CatalogosDAL");
public List<DivisionCIIU> Obtener_DivisionCIIU()
{
List<DivisionCIIU> respuesta = new List<DivisionCIIU>();
try
{
using (CreditoContex db = new CreditoContex())
{
respuesta= db.DivisionCIIU.ToList();
}
}
catch (Exception ex)
{
logs.Error(ex);
throw ex;
}
return respuesta;
}
}
}