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; }
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; }
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(); }
//private readonly ILogger _logger; //protected LogService _LogService = null; public CountryService(TCContext db) { _db = db; // _logger = logger; }