public SectionFacade(IServiceProvider serviceProvider, MasterplanDbContext dbContext) { this.DbContext = dbContext; this.DbSet = this.DbContext.Set <BookingOrder>(); this.IdentityService = serviceProvider.GetService <IIdentityService>(); this.SectionLogic = serviceProvider.GetService <SectionLogic>(); }
//Instantiating the logic classes public UserController() { userLogic = new UserLogic(); sectionLogic = new SectionLogic(); }
public SectionFacade(IServiceProvider serviceProvider, MasterplanDbContext dbContext) { this.DbContext = dbContext; this.DbSet = this.DbContext.Sections; this.SectionLogic = serviceProvider.GetService <SectionLogic>(); }