public ProductsController() : base() { var context = new Prova1DbContext(); var repository = new ProductRepository(context); _productService = new ProductService(repository); }
public OrdersController() : base() { var context = new Prova1DbContext(); var repository = new OrderRepository(context); var repositoryProduct = new ProductRepository(context); _ordersService = new OrderService(repository, repositoryProduct); }
public AuthenticationService(IUserRepository userRepository, Prova1DbContext dbContext) { _userRepository = userRepository; }
public ProductRepository(Prova1DbContext context) { _context = context; }
public UsersRepository(Prova1DbContext context) { _context = context; }
public OrderRepository(Prova1DbContext context) { _context = context; }