public async Task <bool> DeleteSpaceAsync(Guid venueId, Guid spaceId) { List <SpaceImageDto> spaceImageDtos = await _spaceImageRepo.GetSpaceImagesAsync(venueId, spaceId); if (spaceImageDtos.Count > 0) { await _spaceImageRepo.DeleteSpaceImagesAsync(spaceImageDtos); } return(await _spaceRepo.DeleteSpaceAsync(venueId, spaceId)); }
public async Task <List <SpaceImageDto> > GetSpaceImagesAsync(Guid venueId, Guid spaceId) { return(await _spaceImageRepo.GetSpaceImagesAsync(venueId, spaceId)); }