Exemplo n.º 1
0
        public async Task <IEnumerable <BookingDTO> > GetByView(Guid viewId)
        {
            var showNames = _aadService.IsAdmin() || _viewRepository.GetShowNamesById(viewId);

            return((await _bookingRepository.GetByView(viewId)).Select(booking => BookingMapper.Map(booking, showNames)));
        }