public ProductsService(IServiceProvider serviceProvider, IConfiguration configuration) { _provider = serviceProvider; _configuration = configuration; _instance = ProductContext.GetInstance(); }
public ProductsController(WebAppContext context) { _context = context; _instance = ProductContext.GetInstance(); }