Ejemplo n.º 1
0
 public ThreadService(MatterspaceDbContext db)
 {
     if (db == null)
     {
         throw new ArgumentNullException(nameof(db));
     }
     this.Db = db;
 }
Ejemplo n.º 2
0
        public HomeController()
        {
            var database = new MatterspaceDbContext();

            this._productService = new ProductService(database);
        }
Ejemplo n.º 3
0
 public SettingsController()
 {
     this.Db = new MatterspaceDbContext();
     this.settingsService = new SettingsService(this.Db);
     this.productService  = new ProductService(this.Db);
 }
Ejemplo n.º 4
0
 public ProductsController()
 {
     this.Db = new MatterspaceDbContext();
     this._productService = new ProductService(this.Db);
 }