async void AdvertisingUpdate()
        {
            if (PropertiesManager.IsDateAdvertisingTrue())
            {
                PropertiesManager.SaveAdvertisingDate(dateToSend);
            }
            else
            {
                dateToSend = PropertiesManager.GetDataAdvertising();
            }
            if (PropertiesManager.IsDateFirstAdvertisingTrue())
            {
                PropertiesManager.SaveFirstAdvertisingDate(1);
            }
            else
            {
                PropertiesManager.SaveFirstAdvertisingDate(PropertiesManager.GetFirstDataAdvertising() + 1);
            }

            CheckConnection();
            //ShowProgress("Validando");
            String times = "";

            if (PropertiesManager.GetFirstDataAdvertising() > 1)
            {
                times = dateToSend.ToString("yyyy-MM-dd HH:MM:ss");
            }
            else
            {
                times = "0000-00-00 00:00:00";
            }
            //var times = dateToSend.ToString("yyyy-MM-dd HH:MM:ss");
            _advertising = await ClientGuanajoven.getAdvertising(times);

            var publicidad = App.CurrentApp.RealmInstance.All <Publicidad>().ToList();

            if (_advertising != null && _advertising.Count > 0)
            {
                MergeLists(_advertising);
            }

            publicidad = App.CurrentApp.RealmInstance.All <Publicidad>().ToList();
            if (publicidad != null)
            {
                dateToSend = time;
                PropertiesManager.SaveEventDate(dateToSend);
                publicidad = publicidad.OrderByDescending(x => x.fecha_inicio).ToList();
            }
            //HideProgress();
        }