public UnitOfWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(_db); CoverType = new CoverTypeRepository(_db); Company = new CompanyRepository(_db); Product = new ProductRepository(_db); ApplicationUser = new ApplicationUserRepository(_db); SP_Call = new SP_Call(_db); }
public UnitOfWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(_db); SP_Call = new SP_Call(_db); }