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); } }
public async Task DeleteAsync(int agencyId, int id) { var property = await _client.GetByIdAsync(agencyId, id); await _client.DeletePropertyAsync(agencyId, id); }