30 lines
838 B
C#
30 lines
838 B
C#
using System;
|
|
using System.Linq;
|
|
using ULA.Cathay.CreditoModel.Credito;
|
|
using Ultimus.Utilitarios;
|
|
|
|
namespace ULA.Cathay.CreditoModel.DAL.Credito
|
|
{
|
|
public class BeneficiarioSBDDAL
|
|
{
|
|
private UltimusLogs logger = new UltimusLogs("BeneficiarioSBDDAL");
|
|
|
|
public BeneficiarioSBD Obtener(int IdBeneficiarioSBD)
|
|
{
|
|
BeneficiarioSBD respuesta = new BeneficiarioSBD();
|
|
try
|
|
{
|
|
using(CreditoContex db = new CreditoContex())
|
|
{
|
|
respuesta = db.BeneficiarioSBD.Where(x => x.IdBeneficiarioSBD == IdBeneficiarioSBD).FirstOrDefault();
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
logger.Error(ex);
|
|
throw ex;
|
|
}
|
|
return respuesta;
|
|
}
|
|
}
|
|
}
|