示例#1
0
 public ProductController(IProductInterface prodRepository, ILogger <HomeController> logger)
 {
     this._logger           = logger;
     this.productRepository = prodRepository;
 }
        // public IProductInterface Context { get => _context; set => _context = value; }

        public ProductsController(IProductInterface productRepository) => _context = productRepository;
示例#3
0
 public ProductsController(IProductInterface productInterface)
 {
     _productInterface = productInterface;
 }
示例#4
0
 public AngularController(ProductDbContext dbcontext, IProductInterface inventory)
 {
     _dbcontext = dbcontext;
     _inventory = inventory;
 }
 public HomeController(IProductInterface prodRepository, ILogger <HomeController> logger)
 {
     _logger           = logger;
     productRepository = prodRepository;
 }
示例#6
0
 public void AddtoTable(IdbInterface db, IProductInterface p)
 {
     db.Products.Add(p as Product);
 }