public static List <Models.DesgloseCalendario> obtenerHorasDefecto(DateTime dDesde, DateTime dHasta)
    {
        BLL.DesgloseCalendario DesgloseCalendarioBLL = new BLL.DesgloseCalendario();

        try
        {
            List <Models.DesgloseCalendario> lDesgloseCalendario = null;

            lDesgloseCalendario = DesgloseCalendarioBLL.DetalleCalendarioSemana((int)HttpContext.Current.Session["IDCALENDARIO_IAP"], dDesde, dHasta);
            return(lDesgloseCalendario);
        }
        catch (Exception ex)
        {
            LogError.LogearError("Error al obtener las horas por defecto", ex);
            throw new Exception(System.Uri.EscapeDataString("Error al obtener las horas por defecto"));
        }
        finally
        {
            DesgloseCalendarioBLL.Dispose();
        }
    }