コード例 #1
0
 public FlightsController(IFlightsRepo repo, IAirplanesRepo repo2, IAirportsRepo repo3, ISeatsRepo repo4)
 {
     this.FlightsRepo  = repo;
     this.AirplaneRepo = repo2;
     this.AirportRepo  = repo3;
     this.SeatsRepo    = repo4;
 }
コード例 #2
0
 //constructor injection (dependency injection)
 public FlightsRepo(ApplicationDbContext context, ISeatsRepo repo)
 {
     this._context = context;
     this._repo    = repo;
 }
コード例 #3
0
 public FlightsReservationAppController(IFlightsRepo repo, ISeatsRepo repo2)
 {
     _repo  = repo;
     _repo2 = repo2;
 }