public async Task <IActionResult> ChangeStatusOfAdvertisement(
            [FromRoute] Guid advertisementId, [FromBody] ChangeStatusOfAdvertisementRequest changeStatusOfAdvertisement)
        {
            Guid          currentUserId = Guid.Parse(User.Identity.Name);
            Advertisement advertisement;

            try
            {
                advertisement = await _advertisementService
                                .GetAdvertisementByIdAndCustomerIdAsync(advertisementId, currentUserId);
            }
            catch (Exception e)
            {
                return(BadRequest(new BadRequestResponseMessage(e.Message)));
            }

            await _advertisementService.UpdateAdvertisementStatus(
                advertisement, (AdvertisementStatus)changeStatusOfAdvertisement.NewAdvertisementStatus);

            return(Ok());
        }