Пример #1
0
 public ManagerController(IProductRepository productRepo, IKindRepository kindRepo, IProductStatusRepository productStatusRepo, ICategoryRepository categoryRepo)
 {
     this.productRepo       = productRepo;
     this.kindRepo          = kindRepo;
     this.productStatusRepo = productStatusRepo;
     this.categoryRepo      = categoryRepo;
 }
Пример #2
0
 public ScaleMachineService(IScaleMachineRepository repoScale, IKindRepository repoBrand, IMapper mapper, MapperConfiguration configMapper)
 {
     _configMapper = configMapper;
     _mapper       = mapper;
     _repoLine     = repoBrand;
     _repoScale    = repoScale;
 }
Пример #3
0
 public GlueService(
     IHttpContextAccessor accessor,
     IGlueRepository repoBrand,
     IModelNameRepository repoModelName,
     IGlueIngredientRepository repoGlueIngredient,
     IPartNameRepository repoPartName,
     IPartName2Repository repoPartName2,
     IPartRepository repoPart,
     IKindRepository repoKind,
     IMaterialRepository repoMaterial,
     IBPFCEstablishRepository repoBPFC,
     IMaterialNameRepository repoMaterialName,
     IHubContext <ECHub> hubContext,
     IMapper mapper,
     MapperConfiguration configMapper)
 {
     _configMapper       = configMapper;
     _mapper             = mapper;
     _accessor           = accessor;
     _repoGlue           = repoBrand;
     _repoPartName       = repoPartName;
     _repoPartName2      = repoPartName2;
     _repoPart           = repoPart;
     _repoKind           = repoKind;
     _repoMaterial       = repoMaterial;
     _repoMaterialName   = repoMaterialName;
     _hubContext         = hubContext;
     _repoBPFC           = repoBPFC;
     _repoModelName      = repoModelName;
     _repoGlueIngredient = repoGlueIngredient;
 }
Пример #4
0
 public KindService(IKindRepository repoKind, ICategoryRepository repoCate, IMapper mapper, MapperConfiguration config)
 {
     _repoCate     = repoCate;
     _configMapper = config;
     _repoKind     = repoKind;
     _mapper       = mapper;
 }
 public InvoiceController(IInvoiceRepository invoiceRepository, IKindRepository kindRepository,
                          IProviderRepository providerRepository, IMonthRepository monthRepository)
 {
     _invoiceRepository  = invoiceRepository;
     _kindRepository     = kindRepository;
     _providerRepository = providerRepository;
     _monthRepository    = monthRepository;
 }
Пример #6
0
 public CartController(IBillRepository billRepo, IProductsInBillRepository productsInBillRepo, IProductRepository productRepo, IKindRepository kindRepo, ICategoryRepository categoryRepo)
 {
     this.billRepo           = billRepo;
     this.productsInBillRepo = productsInBillRepo;
     this.productRepo        = productRepo;
     this.kindRepo           = kindRepo;
     this.categoryRepo       = categoryRepo;
 }
Пример #7
0
        private const int USER_PAGE_SIZE = 20; //Paging Manage User Page

        public AdminController(IProductRepository productRepo, IKindRepository kindRepo, IProductStatusRepository productStatusRepo, ICategoryRepository categoryRepo, IUserRepository userRepo, IRoleRepository roleRepo, IBillRepository billRepo, IProductsInBillRepository productsInBillRepo)
        {
            this.productRepo        = productRepo;
            this.kindRepo           = kindRepo;
            this.productStatusRepo  = productStatusRepo;
            this.categoryRepo       = categoryRepo;
            this.userRepo           = userRepo;
            this.roleRepo           = roleRepo;
            this.billRepo           = billRepo;
            this.productsInBillRepo = productsInBillRepo;
        }
Пример #8
0
 private void SetUpRepositories()
 {
     ContractorRepository = kernel.Get<IContractorRepository>();
     DeviceRepository = kernel.Get<IDeviceRepository>();
     FixedAssetRepository = kernel.Get<IFixedAssetRepository>();
     KindRepository = kernel.Get<IKindRepository>();
     LicenceRepository = kernel.Get<ILicenceRepository>();
     PeripheralDeviceRepository = kernel.Get<IPeripheralDeviceRepository>();
     PersonRepository = kernel.Get<IPersonRepository>();
     SectionRepository = kernel.Get<ISectionRepository>();
     SubgroupRepository = kernel.Get<ISubgroupRepository>();
     MembershipRoleRepository = kernel.Get<IMembershipRoleRepository>();
     MembershipUserRepository = kernel.Get<IMembershipUserRepository>();
 }
Пример #9
0
 public KindService(IKindRepository kindRepository, IVideoRepository videoRepository, IMapper mapper)
 {
     this._kindRepository  = kindRepository ?? throw new ArgumentNullException(nameof(kindRepository));
     this._videoRepository = videoRepository ?? throw new ArgumentNullException(nameof(videoRepository));
     this._mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #10
0
 public KindService(IKindRepository kindRepository)
 {
     _kindRepository = kindRepository;
 }
Пример #11
0
 public KindService(IKindRepository repoBrand, IMapper mapper, MapperConfiguration configMapper)
 {
     _configMapper = configMapper;
     _mapper       = mapper;
     _repoLine     = repoBrand;
 }
 public KindController(IKindRepository repo)
 {
     repository = repo;
 }