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