public UnitOfWork(ApplicationDbContext ctx) { _ctx = ctx; ClientReviews = new ClientReviewsRepository(_ctx); Leads = new LeadsRepository(_ctx); Menus = new MenusRepository(_ctx); WebsitePages = new WebsitePagesRepository(_ctx); GlobalSettings = new GlobalValuesRepository(_ctx); }
public UnitOfWork(ApplicationDbContext ctx) { _ctx = ctx; Blog = new BlogRepository(_ctx); Product = new ProductRepository(_ctx); ProductImage = new ProductImagesRepository(_ctx); GlobalSettings = new GlobalValuesRepository(_ctx); BlogTypes = new BlogTypeRepository(_ctx); ClientReviews = new ClientReviewsRepository(_ctx); Lead = new LeadRepository(_ctx); WebsiteContent = new WebsiteContentRepository(_ctx); }