//Inject the coreAppDBContext in to the Repository class public CategoryRepository(CoreAppDBContext ctx) { this.ctx = ctx; }
public ProductRepository(CoreAppDBContext ctx) { this.ctx = ctx; }
//Inject the coreAppDBContext in to the Repository class public CategoryRepository(CoreAppDBContext ctx) { this.ctx = ctx; }
public ProductRepository(CoreAppDBContext ctx) { this.ctx = ctx; }