public CategoryBL(IServiceProvider serviceProvider) : base(serviceProvider) { _BusinessBase = new BusinessBase <Category>(serviceProvider); _context = serviceProvider.GetRequiredService <GrubNowDbContext>(); }
public BlogBL(IServiceProvider serviceProvider) : base(serviceProvider) { _BusinessBase = new BusinessBase <Blogs>(serviceProvider); response = new BaseResponse(); _context = serviceProvider.GetRequiredService <GrubNowDbContext>(); }