Example #1
0
        public async Task <VenueResponse> GetVenueAsync(Guid venueId)
        {
            List <VenueDto> venueDtos = await _venueRepo.GetVenueAsync(venueId);

            List <SpaceResponse> spaces = await _spaceProvider.GetSpacesAsync(venueId, false);

            return(venueDtos.MapDtoToResponse(spaces));
        }
Example #2
0
        public async Task <ActionResult <ResponseBase <List <SpaceResponse> > > > GetSpacesAsync(Guid venueId)
        {
            List <SpaceResponse> results = await _spaceProvider.GetSpacesAsync(venueId);

            return(new ResponseBase <List <SpaceResponse> >(results));
        }