Example #1
0
        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));
        }
Example #2
0
 public async Task <int> AddAsync(int agencyId, AddEditPropertyRequestModel request)
 {
     return(await _client.AddPropertyAsync(agencyId, request));
 }