public async Task <IActionResult> Archive(int id) { var userId = await GetCurrentUserId(); var result = await _advertisementService.ArchiveAdvertisement(userId, id); if (result.IsSuccessful) { return(Ok()); } if (result.IsClientError) { return(Forbid()); } return(StatusCode(500)); }