public async Task <IActionResult> Put(int id, AdvertisementSaveDto ad)
        {
            if (ModelState.IsValid)
            {
                var currentId = await GetCurrentUserId();

                var result = await _advertisementService.EditAdvertisement(currentId, id, ad);

                if (result.IsSuccessful)
                {
                    return(Ok());
                }

                if (result.IsClientError)
                {
                    return(BadRequest(result.Message));
                }

                return(StatusCode(500));
            }
            return(BadRequest(OtherServices.ReturnAllModelErrors(ModelState)));
        }