public async Task <BaseServiceResponse <int> > GenerarPromocionAnuncioAsync()
        {
            BaseServiceResponse <int> response = new BaseServiceResponse <int>();
            var anuncioEntity = await _anuncioRepository.ConsultarAnuncioMasAntiguoAsync();

            if (anuncioEntity is null)
            {
                response.Message = "No se pudo obtener información.";
                return(response);
            }

            var idPromocionAnuncio = await _promocionAnuncioRepository.CrearPromocionAnuncioAsync(anuncioEntity.IdAnuncio);

            if (idPromocionAnuncio == default)
            {
                response.Message = "No se pudo obtener generar promoción.";
                return(response);
            }

            ThreadPromotion.GenerarPromocion(anuncioEntity.IdAnuncio);

            response.Message = "Se obtuvo la información exitosamente.";
            response.Success = true;
            response.Data    = idPromocionAnuncio;
            return(response);
        }