Exemplo n.º 1
0
        //will write the arriving details to DB
        private void OnPlaneArriving(object sender, EventArgs e)
        {
            PlaneDTO plane = sender as PlaneDTO;

            //write the new arrival to DB:
            ArrivalRepository.AddArrival(plane.PlaneId);
        }
Exemplo n.º 2
0
 public UnitOfWork(EmployeeTrackerDbContext context)
 {
     _context = context;
     Arrivals = new ArrivalRepository(_context);
 }
Exemplo n.º 3
0
 //pulling data from db about all history arrivals
 public List <ArrivalDTO> GetArrivalsHistory()
 {
     return(ArrivalRepository.GetAllArrivals());
 }