public FeedbacksController()
 {
     _context                    = new JPGPizzaDbContext();
     _feedbacksRepository        = new FeedbacksRepository(_context);
     _productsRepository         = new ProductsRepository(_context);
     _applicationUsersRepository = new ApplicationUsersRepository(_context);
 }
 public ProductsRepository(JPGPizzaDbContext context)
 {
     _context = context;
 }
Beispiel #3
0
 public HomeController()
 {
     _context = new JPGPizzaDbContext();
 }
Beispiel #4
0
 public AdministratorsRepository(JPGPizzaDbContext context)
 {
     this._context = context;
 }
Beispiel #5
0
 public OrdersRepository(JPGPizzaDbContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public IngredientsRepository(JPGPizzaDbContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public ApplicationUsersController()
 {
     _context = new JPGPizzaDbContext();
     _applicationUserRepository = new ApplicationUsersRepository(_context);
     _ordersRepository          = new OrdersRepository(_context);
 }
 public IngredientsController()
 {
     _context = new JPGPizzaDbContext();
     _ingredientsRepository = new IngredientsRepository(_context);
 }
 public ApplicationUsersRepository(JPGPizzaDbContext context)
 {
     _context = context;
 }
Beispiel #10
0
 public OrdersController()
 {
     _context            = new JPGPizzaDbContext();
     _productsRepository = new ProductsRepository(_context);
     _ordersRepository   = new OrdersRepository(_context);
 }
Beispiel #11
0
 public ProductsController()
 {
     _context = new JPGPizzaDbContext();
     this._ingredientsRepository = new IngredientsRepository(_context);
     this._productsRepository    = new ProductsRepository(_context);
 }
Beispiel #12
0
 public FeedbacksRepository(JPGPizzaDbContext context)
 {
     _context = context;
 }
 public AdministratorsController()
 {
     _context = new JPGPizzaDbContext();
     _administratorsRepository = new AdministratorsRepository(_context);
     _productsRepository       = new ProductsRepository(_context);
 }