Example #1
0
        public AirportsController(AirportsContext dbContext)
        {
            #region Preconditions
            if (null == dbContext)
            {
                throw new ArgumentNullException(nameof(dbContext));
            }
            #endregion

            _dbContext = dbContext;
        }
 public RepositoryBase(AirportsContext context)
 {
     Context = context;
 }
Example #3
0
 public AirportsRepository(AirportsContext context) : base(context)
 {
 }
Example #4
0
 public AirportsRepository()
 {
     context = new AirportsContext();
 }