33 lines
1 KiB
C#
33 lines
1 KiB
C#
using System;
|
|
using System.Linq;
|
|
using ULA.Cathay.CreditoModel.Credito;
|
|
using Ultimus.Utilitarios;
|
|
using System.Data.Entity.Validation;
|
|
namespace ULA.Cathay.CreditoModel.DAL.Credito
|
|
{
|
|
public class TiemposEjecucionNotificacionesCompletionTimeDAL
|
|
{
|
|
private UltimusLogs logger = new UltimusLogs("TiemposEjecucionNotificacionesCompletionTimeDAL");
|
|
|
|
public TiemposEjecucionNotificacionesCompletionTime Obtener(int IdTiempo)
|
|
{
|
|
TiemposEjecucionNotificacionesCompletionTime tiempo = new TiemposEjecucionNotificacionesCompletionTime();
|
|
|
|
try
|
|
{
|
|
using (CreditoContex db = new CreditoContex())
|
|
tiempo = db.TiemposEjecucionNotificacionesCompletionTime.Where(e => e.IdTiempo == IdTiempo).FirstOrDefault(); ;
|
|
}
|
|
catch (DbEntityValidationException ex1)
|
|
{
|
|
logger.Error(ex1);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
logger.Error(ex);
|
|
}
|
|
|
|
return tiempo;
|
|
}
|
|
}
|
|
}
|