Ejemplo n.º 1
0
 public FlightService(IAirService _AirService,
                      IUtilityService _UtilityService,
                      ILogService _LogService,
                      IMemoryCache memoryCache,
                      TCContext _context)
 {
     this._cache          = memoryCache;
     this._AirService     = _AirService;
     this._UtilityService = _UtilityService;
     this._LogService     = _LogService;
     this._context        = _context;
 }
Ejemplo n.º 2
0
 public GeoService(ISabreConnector _SabreConnector,
                   IMemoryCache _cache,
                   ILogService _LogService,
                   IUtilityService _UtilityService,
                   TCContext _context)
 {
     this._SabreConnector = _SabreConnector;
     this._cache          = _cache;
     this._LogService     = _LogService;
     this._UtilityService = _UtilityService;
     this._context        = _context;
 }
Ejemplo n.º 3
0
        public static void EnsureSeedData(this TCContext db)
        {
            var country = ReadAsync <List <Country> >("countries.json").Result;

            db.AddRange(country);
            db.SaveChanges();

            var cities = ReadAsync <List <City> >("cities.json").Result;

            db.AddRange(cities);
            db.SaveChanges();
        }
Ejemplo n.º 4
0
        //private readonly ILogger _logger;

        //protected LogService _LogService = null;

        public CountryService(TCContext db)
        {
            _db = db;
            //    _logger = logger;
        }