public async Task <int> AddAsync(int agencyId, AddPropertyRequestDto request) { var newAttacments = new List <PropertyAttachmentDto>(); foreach (var file in request.AttachmentsToAdd) { var url = await UploadFileAsync(file); newAttacments.Add(new PropertyAttachmentDto { Name = file.Name, Url = url, }); } return(await _client.AddPropertyAsync(agencyId, request)); }
public async Task <int> AddAsync(int agencyId, AddEditPropertyRequestModel request) { return(await _client.AddPropertyAsync(agencyId, request)); }