//readonly IProductSupplierRepository repositoryProductSupplier;
        //readonly IPurchaseRepository repositoryPurchase;
        //readonly IHardwareRepository repositoryHardware;
        //readonly ISoftwareRepository repositorySoftware;

        public SupplierService(ISupplierRepository _repository, IProductSupplierRepository _repositoryProductSupplier,
                               IPurchaseRepository _repositoryPurchase, IHardwareRepository _repositoryHardware, ISoftwareRepository _repositorySoftware)
        {
            repository = _repository;
            repositoryProductSupplier = _repositoryProductSupplier;
            repositoryPurchase        = _repositoryPurchase;
            repositoryHardware        = _repositoryHardware;
            repositorySoftware        = _repositorySoftware;
        }
 public SoftwareService(ISoftwareRepository _repository, IProductTypeRepository _repositoryProductType,
                        ISoftwareTypeRepository _repositorySoftwareType, IProductSupplierRepository _repositoryProductSupplier,
                        IProductDetailRepository _repositoryProductDetail, IPurchaseItemRepository _repositoryPurchaseItem, IStatusRepository _repositoryStatus, IHostingEnvironment _hostingEnv)
 {
     repository                = _repository;
     repositoryProductType     = _repositoryProductType;
     repositorySoftwareType    = _repositorySoftwareType;
     repositoryProductSupplier = _repositoryProductSupplier;
     repositoryProductDetail   = _repositoryProductDetail;
     repositoryPurchaseItem    = _repositoryPurchaseItem;
     repositoryStatus          = _repositoryStatus;
     hostingEnv                = _hostingEnv;
 }
Example #3
0
 public UnitOfWork(RestoranContext context, IUnitRepository unitRep, IProductRepository productRep, ILocationRepository locationRep, IOrderRepository orderRep, ISupplierRepository supplierRep, IProductCategoryRepository productCategoryRep, IRecipeRepository recipeRep, IMarketRepository marketRep, IProductSupplierRepository prodSup, IReasonRepository reasonRep, IDisposalProductRepository dProductRep, IProductDisposalRepository productDRep)
 {
     this.context       = context;
     UnitRep            = unitRep;
     ProductRep         = productRep;
     LocationRep        = locationRep;
     RecipeRep          = recipeRep;
     OrderRep           = orderRep;
     SupplierRep        = supplierRep;
     ProductCategoryRep = productCategoryRep;
     MarketRep          = marketRep;
     ProdSup            = prodSup;
     ReasonRep          = reasonRep;
     DProductRep        = dProductRep;
     ProductDRep        = productDRep;
 }
 public ProductSupplierService(IProductSupplierRepository _repository, ISupplierRepository _repositorySupplier)
 {
     repository         = _repository;
     repositorySupplier = _repositorySupplier;
 }