public EFCategoryRepository(ProductDBContext db) { if (db != null) { _db = db; } else { throw new ArgumentNullException(); } }