示例#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());
        }
 public List <TMEventSeatDto> GetTMEventSeatsByArea(int tmeventAreaId)
 {
     return(_tmeventSeatService.GetAllTMEventSeat()
            .Where(a => a.TMEventAreaId == tmeventAreaId).ToList());
 }