Exemplo n.º 1
0
        public async Task <IActionResult> UpdateAd(Guid memberId, Guid adId, [FromBody] AdForCreationDto adForEditDto)
        {
            if (!User.CheckAuthorization(memberId))
            {
                return(BadRequest(new UnauthorizedErrorResult()));
            }

            IResult result = await _adService.EditAsync(adForEditDto, adId);

            return(Ok());
        }