public ThreadService(MatterspaceDbContext db) { if (db == null) { throw new ArgumentNullException(nameof(db)); } this.Db = db; }
public HomeController() { var database = new MatterspaceDbContext(); this._productService = new ProductService(database); }
public SettingsController() { this.Db = new MatterspaceDbContext(); this.settingsService = new SettingsService(this.Db); this.productService = new ProductService(this.Db); }
public ProductsController() { this.Db = new MatterspaceDbContext(); this._productService = new ProductService(this.Db); }