public async Task <ShortUrlEntity> ArchiveShortUrl(ShortUrlEntity archivedUrl) { CancellationToken cancellationToken = new CancellationToken(); var response = await _client.PostAsJsonAsync($"/api/UrlArchive", archivedUrl, cancellationToken); var resultList = await response.Content.ReadAsStringAsync(); return(JsonConvert.DeserializeObject <ShortUrlEntity>(resultList)); }
public async Task <ShortUrlEntity> ArchiveShortUrl(ShortUrlEntity archivedUrl) { var result = await _urlSecuredService.ArchiveShortUrl(archivedUrl); return(result); }
public async Task <ShortUrlEntity> UpdateShortUrl(ShortUrlEntity editedUrl) { var result = await _urlSecuredService.UpdateShortUrl(editedUrl); return(result); }