예제 #1
0
 public Jobs()
 {
     context    = new ApplicationDbContext();
     carts      = new CartRepository(context);
     dailyDeals = new DailyDealRepository(context);
     products   = new ProductRepository(context);
 }
예제 #2
0
 public DailyDealsController()
 {
     context    = new ApplicationDbContext();
     dailyDeals = new DailyDealRepository(context);
 }