Ejemplo n.º 1
0
 public CustomerGroupCommandhandler(ICustomerGroupRepository CustomerGroupRepository,
                                    IMediatorHandler bus,
                                    INotificationHandler <DomainNotification> notifications) : base(bus, notifications)
 {
     _CustomerGroupRepository = CustomerGroupRepository;
     _bus = bus;
 }
Ejemplo n.º 2
0
 public SOApprovalController(ISOApprovalRepository _soapprovalRepository, IColumnAuthRepository _columnAuthRepository, ICustomerGroupRepository _customergroupRepository, ICTCApprovalRepository _ctcsoapprovalRepository, IHostingEnvironment _hostingEnv)
 {
     soapprovalRepository    = _soapprovalRepository;
     columnAuthRepository    = _columnAuthRepository;
     customergroupRepository = _customergroupRepository;
     ctcsoapprovalRepository = _ctcsoapprovalRepository;
     hostingEnv = _hostingEnv;
 }
        public UnitOfWork(AppDbContext context)
        {
            _context = context;

            UserRepository                  = new UserRepository(_context);
            ItemRepository                  = new ItemRepository(_context);
            ItemGroupRepository             = new ItemGroupRepository(_context);
            ItemTypeRepository              = new ItemTypeRepository(_context);
            CustomerRepository              = new CustomerRepository(_context);
            SupplierRepository              = new SupplierRepository(_context);
            CurrencyRepository              = new CurrencyRepository(_context);
            PurchaseRequestRepository       = new PurchaseRequestRepository(_context);
            PurchaseRequestDetailRepository = new PurchaseRequestDetailRepository(_context);
            CustomerGroupRepository         = new CustomerGroupRepository(_context);
        }
Ejemplo n.º 4
0
 public CustomerAppService(ICustomerRepository customerRepository,
                           ICustomerGroupRepository customerGroupRepository,
                           IProspectRepository prospectRepository,
                           ISourceRepository sourceRepository,
                           ITitleRepository titleRepository,
                           IVehicleRepository vehicleRepository,
                           IPersonalRepository personalRepository,
                           IMapper mapper)
 {
     _customerRepository      = customerRepository;
     _customerGroupRepository = customerGroupRepository;
     _prospectRepository      = prospectRepository;
     _sourceRepository        = sourceRepository;
     _titleRepository         = titleRepository;
     _vehicleRepository       = vehicleRepository;
     _personalRepository      = personalRepository;
     _mapper = mapper;
 }
Ejemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="customerGroupRepository"></param>
 ///  CreatedBy : hmducanh (29/04/2021)
 public CustomerGroupService(ICustomerGroupRepository customerGroupRepository) : base(customerGroupRepository)
 {
     _customerGroupRepository = customerGroupRepository;
 }
Ejemplo n.º 6
0
 public CustomerGroupService(ICustomerGroupRepository repository)
     : base(repository)
 {
 }
Ejemplo n.º 7
0
 public CustomerGroupController(ICustomerGroupRepository customerGroupRepository, ICustomerGroupServices customerGroupService) : base(customerGroupRepository, customerGroupService)
 {
     _customerGroupRepository = customerGroupRepository;
     _customerGroupService    = customerGroupService;
 }
Ejemplo n.º 8
0
 public CustomerGroupService(ICustomerGroupRepository customerGroupRepository)
 {
     this.customerGroupRepository = customerGroupRepository;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public CustomerGroupService()
 {
     this.customerGroupRepository = new CustomerGroupRepository();
     this.customerRepository      = new CustomerRepository();
 }
 // Mục đích : muốn không phải giống entity: muốn lấy dữ liệu phải entity.tableName
 public UnitOfWork(ICustomerRepository customerRepository, ICustomerGroupRepository customerGroupRepository)
 {
     Customer      = customerRepository;
     CustomerGroup = customerGroupRepository;
 }
Ejemplo n.º 11
0
 public CustomerGroupService(IBaseRepository <CustomerGroup> baseRepository, ICustomerGroupRepository customerGroupRepository) : base(baseRepository)
 {
     _baseRepository          = baseRepository;
     _customerGroupRepository = customerGroupRepository;
 }
Ejemplo n.º 12
0
 protected void ValidateExistId(ICustomerGroupRepository CustomerGroupRepository)
 {
     RuleFor(c => c.Id).Must(x => CustomerGroupRepository.Get(x) != null).WithMessage("CustomerGroup not found");
 }
Ejemplo n.º 13
0
 public DeleteCustomerGroupValidation(ICustomerGroupRepository CustomerGroupRepository)
 {
     ValidateExistId(CustomerGroupRepository);
 }
Ejemplo n.º 14
0
 public CustomerGroupController(ICustomerGroupService customerGroupService, ICustomerGroupRepository customerGroupRepository) : base(customerGroupService, customerGroupRepository)
 {
     _customerGroupService    = customerGroupService;
     _customerGroupRepository = customerGroupRepository;
 }
Ejemplo n.º 15
0
 public CustomerGroupService(ICustomerGroupRepository repository) : base(repository)
 {
     this._repository = repository;
 }
Ejemplo n.º 16
0
 public CustomerGroupController(ICustomerGroupRepository _customergroupRepository)
 {
     customergroupRepository = _customergroupRepository;
 }