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