Exemplo n.º 1
0
 public ProductCategoryService(UnitOfWork unitOfWork, ProductCategoryRepo catRepo, ProductSubCategoryRepo subCatRepo)
 {
     this.unitOfWork = unitOfWork;
     this.catRepo    = unitOfWork.ProductCategoryRepo;
     this.subCatRepo = unitOfWork.ProductSubCategoryRepo;
 }
Exemplo n.º 2
0
 public ProductCategoryService()
 {
     this.unitOfWork = new UnitOfWork();
     this.catRepo    = new UnitOfWork().ProductCategoryRepo;
     this.subCatRepo = new UnitOfWork().ProductSubCategoryRepo;
 }
Exemplo n.º 3
0
 public UnitOfWork()
 {
     this.Context           = new JooleAppEntities();
     productSubCategoryRepo = new ProductSubCategoryRepo(Context);
 }