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

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

            return(result);
        }