Beispiel #1
0
 public CityController(CityDataContext db, IMapper map)
 {
     _db     = db;
     _mapper = map;
 }
 public AttractionController(CityDataContext db)
 {
     _db = db;
 }
Beispiel #3
0
 public UnitOfWork(CityDataContext context)
 {
     _context           = context;
     Cities             = new CityRepository(_context);
     TouristAttractions = new TouristAttractionRepository(_context);
 }