public async Task <int> EditAsync(int agencyId, EditPropertyRequestDto 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, }); } request.Attachments = request.Attachments.Concat(newAttacments); return(await _client.EditPropertyAsync(agencyId, request)); }
public async Task <int> EditAsync(int agencyId, int id, AddEditPropertyRequestModel request) { return(await _client.EditPropertyAsync(agencyId, id, request)); }