예제 #1
0
        public List <TMEventSeatDto> GetTMEventSeatByEvent(int eventId)
        {
            List <TMEventAreaDto> areas = GetTMEventAreaByEvent(eventId);

            return(_tmeventSeatService.GetAllTMEventSeat()
                   .Where(s => areas.Any(a => a.Id == s.TMEventAreaId)).ToList());
        }
예제 #2
0
 public List <TMEventSeatDto> GetTMEventSeatsByArea(int tmeventAreaId)
 {
     return(_tmeventSeatService.GetAllTMEventSeat()
            .Where(a => a.TMEventAreaId == tmeventAreaId).ToList());
 }