//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); }
public UnitOfWork(EmployeeTrackerDbContext context) { _context = context; Arrivals = new ArrivalRepository(_context); }
//pulling data from db about all history arrivals public List <ArrivalDTO> GetArrivalsHistory() { return(ArrivalRepository.GetAllArrivals()); }