Beispiel #1
0
 public PiesController(PieContext context)
 {
     _context = context;
 }
 public RetailersController(PieContext context)
 {
     _context = context;
 }
Beispiel #3
0
 public PieRepository(PieContext context)
 {
     _context = context;
 }
 public FeedBackRepository(PieContext pieContext)
 {
     _pieContext = pieContext;
 }
Beispiel #5
0
 public PieRepository(PieContext dbContext)
 {
     this.dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
 }
Beispiel #6
0
 public OrderRepository(PieContext dbContext, ShoppingCart cart)
 {
     this.dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     this.cart      = cart ?? throw new ArgumentNullException(nameof(cart));
 }
Beispiel #7
0
 private ShoppingCart(PieContext appDbContext)
 {
     _appDbContext = appDbContext;
 }
Beispiel #8
0
 public HomeController(ILogger <HomeController> logger, PieContext context)
 {
     _logger  = logger;
     _context = context;
 }