Example #1
0
 public HallHandler(IMapper mapper, HallRepository repository, SeatRepository seatRepository, ShowRepository showRepository)
 {
     _mapper         = mapper;
     _repository     = repository;
     _seatRepository = seatRepository;
     _showRepository = showRepository;
 }
Example #2
0
        private void LoadbtnClicked(object sender, EventArgs e)
        {
            SeatRepository SeatRepo = new SeatRepository();
            List <Seat>    sList    = SeatRepo.GetAllSeats();

            this.SeatDeleteGridView.DataSource = sList;
        }
Example #3
0
        public IActionResult GetSectionRow(int venueId, string sectionName, string rowName)
        {
            SeatRepository seatRepo = new SeatRepository(_context);

            var venue = _context.Venue.FirstOrDefault(v => v.VenueId == venueId);

            if (venue == null)
            {
                return(NotFound($"Venue '{venueId}' Not Found"));
            }

            var section = _context.Section.FirstOrDefault(s => (s.Venue.VenueId == venue.VenueId) &&
                                                          (s.SectionName == sectionName));

            if (section == null)
            {
                return(NotFound($"Section '{sectionName}' Not Found for Venue '{venueId}'"));
            }

            var row = _context.Row.FirstOrDefault(r => (r.Section.SectionId == section.SectionId) &&
                                                  (r.RowName == rowName));

            if (row == null)
            {
                return(NotFound($"Row '{rowName}' Not Found for Section '{sectionName}'"));
            }

            return(Ok(seatRepo.GetAllRowSeats(row)));
        }
 public VehicleService(SeatRepository seatRepository, VehicleListQuery vehicleListQuery, VehicleRepository vehicleRepository, CompanyRepository companyRepository, SeatListQuery seatListQuery)
 {
     this.seatListQuery     = seatListQuery;
     this.companyRepository = companyRepository;
     this.vehicleRepository = vehicleRepository;
     this.seatRepository    = seatRepository;
     this.vehicleListQuery  = vehicleListQuery;
 }
Example #5
0
 public SeansController()
 {
     _sRep   = new SessionRepository();
     _mssRep = new MovieSessionSaloonRepository();
     _mRep   = new MovieRepository();
     _salRep = new SaloonRepository();
     _seaRep = new SeatRepository();
 }
Example #6
0
        public TicketPrice(string i, string n)
        {
            InitializeComponent();
            id   = i;
            name = n;
            SeatRepository SeatRepo = new SeatRepository();
            List <Seat>    sList    = SeatRepo.GetAllSeats();

            this.PricedataGridView.DataSource = sList;
        }
Example #7
0
 public ReservationController()
 {
     _sRep        = new SeatRepository();
     _mRep        = new MovieRepository();
     _sesRep      = new SessionRepository();
     _salRep      = new SaloonRepository();
     _mvpRep      = new MovieSessionSaloonRepository();
     _saleRep     = new SaleRepository();
     _saleSeatRep = new SaleSeatRepository();
 }
Example #8
0
 public RepositoryService()
 {
     customerRepository   = new CustomerRepository();
     hallRepository       = new HallRepository();
     movieRepository      = new MovieRepository();
     seanceRepository     = new SeanceRepository();
     seatRepository       = new SeatRepository();
     ticketRepository     = new TicketRepository();
     ticketSeatRepository = new TicketSeatRepository();
     userRepository       = new UserRepository();
     roleRepository       = new RoleRepository();
 }
        public void SetUp()
        {
            var connection = DbConnectionFactory.CreatePersistent(Guid.NewGuid().ToString());

            Context     = new FakeDbContext(connection);
            _repository = new SeatRepository(Context);
            _seat       = ObjectMother.seatDefault;

            _seatSeed = ObjectMother.seatDefault;

            Context.Seats.Add(_seatSeed);
            Context.SaveChanges();
        }
        public string registerSeat([FromBody] Seat value)
        {
            SeatRepository employeeRepository = new SeatRepository();
            Task <int>     count = employeeRepository.Insert(value);

            if (count.Result > 0)
            {
                return("Data saved sucessfully");
            }
            else
            {
                return("Data  not saved sucessfully");
            }
        }
Example #11
0
 public ServiceSeat(
     SeatHistoryRepository seathistRepo,
     SeatRepository seatRepo,
     AuthRepository authRepo,
     UserRepository userRepo,
     FolderRepository folderRepo,
     UnitOfWork unit)
     : base(unit)
 {
     this.seathist_repo = seathistRepo;
     this.seat_repo = seatRepo;
     this.auth_repo = authRepo;
     this.user_repo = userRepo;
     this.folder_repo = folderRepo;
 }
Example #12
0
 public ServiceSeat(
     SeatHistoryRepository seathistRepo,
     SeatRepository seatRepo,
     AuthRepository authRepo,
     UserRepository userRepo,
     FolderRepository folderRepo,
     UnitOfWork unit)
     : base(unit)
 {
     this.seathist_repo = seathistRepo;
     this.seat_repo     = seatRepo;
     this.auth_repo     = authRepo;
     this.user_repo     = userRepo;
     this.folder_repo   = folderRepo;
 }
        private void LoadbtnClicked(object sender, EventArgs e)
        {
            TrainRepository TrainRepo = new TrainRepository();
            List <Train>    tList     = TrainRepo.GetAllTrains();

            this.TrainGridView.DataSource = tList;

            PassengerRepository PassRepo = new PassengerRepository();
            List <RPassenger>   pList    = PassRepo.GetAllPassengers();

            this.PassengerGridView2.DataSource = pList;

            SeatRepository SeatRepo = new SeatRepository();
            List <Seat>    sList    = SeatRepo.GetAllSeats();

            this.SeatGridView3.DataSource = sList;
        }
Example #14
0
        private void DeletebtnClicked(object sender, EventArgs e)
        {
            Seat s = new Seat();

            s.Seatid = this.Sidtbox.Text;

            SeatRepository SeatRepo = new SeatRepository();

            if (SeatRepo.SeatDelete(s.Seatid))
            {
                MessageBox.Show("Seat Information Deleted", "Delete");
            }
            else
            {
                MessageBox.Show("Can Not Delete Data", "Delete Error");
            }
        }
        private void AddbtnClicked(object sender, EventArgs e)
        {
            Seat s = new Seat();

            s.Seatid   = this.Sidtbox.Text;
            s.Seatname = this.Snametbox.Text;
            s.Price    = Convert.ToDouble(this.Pricetbox.Text);

            SeatRepository SeatRepo = new SeatRepository();

            if (SeatRepo.SeatAdd(s))
            {
                MessageBox.Show("Seat Information Added", "ADD");
            }
            else
            {
                MessageBox.Show("Can Not Add Data", "Insert Error");
            }
        }
Example #16
0
 public RouteService(RouteStationForBetweenQuery routeStationForBetweenQuery, CompanyRouteListQuery companyRouteListQuery, CompanyRepository companyRepository, RouteListAllQuery routeListAllQuery, EmptyProgramsListQuery emptyProgramsListQuery, SeatRepository seatRepository, SeatListQuery seatListQuery, RouteRepository routeRepository, RoutesStationRepository routeStationRepository,
                     ProgramRepository programRepository, FindProgramsOfRouteStationQuery findProgramsOfRouteStationQuery,
                     RouteStationListQuery routeStationListQuery, RouteListQuery routeListQuery, CreateSpecificRouteQuery createSpecificRouteQuery,
                     StationRepository stationRepository)
 {
     this.routeStationForBetweenQuery = routeStationForBetweenQuery;
     this.companyRouteListQuery       = companyRouteListQuery;
     this.companyRepository           = companyRepository;
     this.routeListAllQuery           = routeListAllQuery;
     this.emptyProgramsListQuery      = emptyProgramsListQuery;
     this.seatRepository                  = seatRepository;
     this.seatListQuery                   = seatListQuery;
     this.routeRepository                 = routeRepository;
     this.routeStationRepository          = routeStationRepository;
     this.programRepository               = programRepository;
     this.findProgramsOfRouteStationQuery = findProgramsOfRouteStationQuery;
     this.routeStationListQuery           = routeStationListQuery;
     this.routeListQuery                  = routeListQuery;
     this.createSpecificRouteQuery        = createSpecificRouteQuery;
     this.stationRepository               = stationRepository;
 }
        public Ticket_Sell(string i, string n)
        {
            InitializeComponent();
            id   = i;
            name = n;

            TrainRepository TrainRepo = new TrainRepository();
            List <Train>    tList     = TrainRepo.GetAllTrains();

            this.TrainGridView.DataSource = tList;

            PassengerRepository PassRepo = new PassengerRepository();
            List <RPassenger>   pList    = PassRepo.GetAllPassengers();

            this.PassengerGridView2.DataSource = pList;

            SeatRepository SeatRepo = new SeatRepository();
            List <Seat>    sList    = SeatRepo.GetAllSeats();

            this.SeatGridView3.DataSource = sList;
        }
Example #18
0
        public Seat updateSeat(int seatID, Seat seat)
        {
            SeatRepository repository = new SeatRepository();

            return(repository.updateSeat(seatID, seat));
        }
Example #19
0
 public SeatService(SeatRepository repository)
 {
     _repository = repository;
 }
Example #20
0
 public SeatService()
 {
     repository = new SeatRepository(new MovieContext());
 }
Example #21
0
 public SeatsHandler(SeatRepository repository)
 {
     _repository = repository;
 }
Example #22
0
        public dynamic getAllSeat()
        {
            SeatRepository repository = new SeatRepository();

            return(repository.getAllSeat());
        }
 public SeatRepositoryTests()
 {
     _fixture        = new Fixture();
     _seatRepository = (SeatRepository)RepositorySetup.GetInMemorySeatRespository(Guid.NewGuid().ToString(), _fixture);
 }
Example #24
0
        public Seat getSeat(int seatID)
        {
            SeatRepository repository = new SeatRepository();

            return(repository.getSeat(seatID));
        }
Example #25
0
 public Anonymous()
 {
     _userEventRepository = new UserEventRepository();
     _seatRepository      = new SeatRepository();
     _eventSeatRepository = new EventSeatRepository();
 }
Example #26
0
 public SeatController()
 {
     db = new SeatRepository();
     sectionRepository = new SectionRepository();
     flights           = new FlightRepository();
 }
 public SeatController(SeatRepository repository)
 {
 }