Exemple #1
0
        public async Task <SpaceResponse> EditSpaceAsync(SpaceRequest space, Guid venueId, Guid spaceId)
        {
            SpaceDto spaceDto = space.MapRequestToDto(venueId, spaceId);

            await _spaceRepo.EditSpaceAsync(spaceDto);

            return(await GetSpaceAsync(venueId, spaceId));
        }
Exemple #2
0
        public async Task <SpaceResponse> AddSpaceAsync(SpaceRequest space, Guid venueId)
        {
            SpaceDto spaceDto = space.MapRequestToDto(venueId, Guid.Empty);

            Guid insertedSpaceId = await _spaceRepo.AddSpaceAsync(spaceDto);

            return(await GetSpaceAsync(venueId, insertedSpaceId));
        }