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;
public ProductsController(IProductInterface productInterface) { _productInterface = productInterface; }
public AngularController(ProductDbContext dbcontext, IProductInterface inventory) { _dbcontext = dbcontext; _inventory = inventory; }
public HomeController(IProductInterface prodRepository, ILogger <HomeController> logger) { _logger = logger; productRepository = prodRepository; }
public void AddtoTable(IdbInterface db, IProductInterface p) { db.Products.Add(p as Product); }