Example #1
0
        public UnitofWork(ApplicationDbContext db)
        {
            _db = db;

            Category       = new CategoryRespository(_db);
            MembershipType = new MembershipTypeRepository(_db);
            Memberprice    = new MemberpriceRepository(_db);
        }
Example #2
0
        public UnitofWork(ApplicationDbContext db)
        {
            _db = db;

            Category        = new CategoryRespository(_db);
            MembershipType  = new MembershipTypeRepository(_db);
            Memberprice     = new MemberpriceRepository(_db);
            ApplicationUser = new ApplicationUserRespository(_db);
            ShoppingCart    = new ShoppingCartRepository(_db);
            OrderDetails    = new OrderDetailsRepository(_db);
            OrderHeader     = new OrderHeaderRepository(_db);
        }