示例#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;
        }
 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;
 }