Beispiel #1
0
        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));
        }
Beispiel #2
0
        public async Task <ShortUrlEntity> ArchiveShortUrl(ShortUrlEntity archivedUrl)
        {
            var result = await _urlSecuredService.ArchiveShortUrl(archivedUrl);

            return(result);
        }
Beispiel #3
0
        public async Task <ShortUrlEntity> UpdateShortUrl(ShortUrlEntity editedUrl)
        {
            var result = await _urlSecuredService.UpdateShortUrl(editedUrl);

            return(result);
        }