Example #1
0
        public async Task DeleteAsync(int agencyId, int id)
        {
            var property = await _client.GetByIdAsync(agencyId, id);

            await _client.DeletePropertyAsync(agencyId, id);

            foreach (var attachment in property.Attachments)
            {
                await DeleteFileAsync(attachment.Url);
            }
        }
Example #2
0
        public async Task DeleteAsync(int agencyId, int id)
        {
            var property = await _client.GetByIdAsync(agencyId, id);

            await _client.DeletePropertyAsync(agencyId, id);
        }