Esempio n. 1
0
    public static List <Models.FestivosCals> getFestivosRango(DateTime fecha_ini, DateTime fecha_fin)
    {
        BLL.FestivosCals           festivosCalsBLL = new BLL.FestivosCals();
        List <Models.FestivosCals> listFestivos    = new List <Models.FestivosCals>();

        try
        {
            listFestivos = festivosCalsBLL.CatalogoFestivosRango((int)HttpContext.Current.Session["IDCALENDARIO_IAP"], fecha_ini, fecha_fin);

            return(listFestivos);
        }
        catch (Exception ex)
        {
            LogError.LogearError("Error al cargar los festivos", ex);
            throw new Exception(System.Uri.EscapeDataString("No se han podido obtener los festivos del rango especificado."));
        }
        finally
        {
            festivosCalsBLL.Dispose();
        }
    }