public CustomerGroupCommandhandler(ICustomerGroupRepository CustomerGroupRepository, IMediatorHandler bus, INotificationHandler <DomainNotification> notifications) : base(bus, notifications) { _CustomerGroupRepository = CustomerGroupRepository; _bus = bus; }
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); }
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; }
/// <summary> /// /// </summary> /// <param name="customerGroupRepository"></param> /// CreatedBy : hmducanh (29/04/2021) public CustomerGroupService(ICustomerGroupRepository customerGroupRepository) : base(customerGroupRepository) { _customerGroupRepository = customerGroupRepository; }
public CustomerGroupService(ICustomerGroupRepository repository) : base(repository) { }
public CustomerGroupController(ICustomerGroupRepository customerGroupRepository, ICustomerGroupServices customerGroupService) : base(customerGroupRepository, customerGroupService) { _customerGroupRepository = customerGroupRepository; _customerGroupService = customerGroupService; }
public CustomerGroupService(ICustomerGroupRepository customerGroupRepository) { this.customerGroupRepository = customerGroupRepository; }
/// <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; }
public CustomerGroupService(IBaseRepository <CustomerGroup> baseRepository, ICustomerGroupRepository customerGroupRepository) : base(baseRepository) { _baseRepository = baseRepository; _customerGroupRepository = customerGroupRepository; }
protected void ValidateExistId(ICustomerGroupRepository CustomerGroupRepository) { RuleFor(c => c.Id).Must(x => CustomerGroupRepository.Get(x) != null).WithMessage("CustomerGroup not found"); }
public DeleteCustomerGroupValidation(ICustomerGroupRepository CustomerGroupRepository) { ValidateExistId(CustomerGroupRepository); }
public CustomerGroupController(ICustomerGroupService customerGroupService, ICustomerGroupRepository customerGroupRepository) : base(customerGroupService, customerGroupRepository) { _customerGroupService = customerGroupService; _customerGroupRepository = customerGroupRepository; }
public CustomerGroupService(ICustomerGroupRepository repository) : base(repository) { this._repository = repository; }
public CustomerGroupController(ICustomerGroupRepository _customergroupRepository) { customergroupRepository = _customergroupRepository; }