예제 #1
0
        public async Task <bool> DeletePetGalleryImage(string id, string imageId, string token, CancellationToken cancelationToken = default(CancellationToken))
        {
            var address = PetGalleryUri.Replace("{id}", id) + $"/{imageId}";

            return(await _restService.ExecuteDeleteAction(address, token, cancelationToken));
        }
예제 #2
0
        public async Task <bool> UploadPetGalleryImage(string id, string token, IEnumerable <IFormFile> files, CancellationToken cancelationToken = default(CancellationToken))
        {
            var address = PetGalleryUri.Replace("{id}", id);

            return(await _restService.ExecutePostMultipartAction(address, files, id, token, cancelationToken));
        }