public ChartDataDTO chartBarData()
        {
            try
            {
                var          anuncios = ListarAnuncios();
                var          today    = DateTime.Today;
                ChartDataDTO result   = new ChartDataDTO();

                for (int i = 5; i >= 0; i--)
                {
                    DateTime fechaResultado = today.AddMonths(-i);
                    var      model          = anuncios.Where(x => x.fechaActivacion.Month == fechaResultado.Month).ToList();
                    result.datos.Add(model.Count.ToString());
                    string Mes = dateHelper.stringToMonth(fechaResultado.Month.ToString());
                    result.periodos.Add(Mes);
                }


                return(result);
            }
            catch (Exception)
            {
                throw;
            }
        }
        public ChartDataDTO ChartAreaData()
        {
            try
            {
                var anuncios = ListarAnuncios();
                var today    = DateTime.Today;

                ChartDataDTO result = new ChartDataDTO();

                for (int i = 15; i >= 0; i--)
                {
                    DateTime fechaResultado = today.AddDays(-i);
                    var      model          = anuncios.Where(x => x.fechaActivacion.Day == fechaResultado.Day).ToList();
                    result.datos.Add(model.Count.ToString());
                    string fecha = construirFecha(fechaResultado.Month.ToString(), fechaResultado.Day.ToString());
                    result.periodos.Add(fecha);
                }

                return(result);
            }
            catch (Exception)
            {
                throw;
            }
        }