public BrandController()
 {
     _brandTypeRepository = new BrandTypeRepository();
     _brandSubTypeRepository = new BrandSubTypeRepository();
     _brandRepository = new BrandRepository();
     _productRepository = new ProductRepository();
 }
 public VehicleEditorModel(ICustomerRepository customerRepository, IVehicleGroupRepository vehicleGroupRepository,
     IVehicleRepository vehicleRepository,
     IVehicleDetailRepository vehicleDetailRepository, IVehicleWheelRepository vehicleWheelRepository,
     ISparepartRepository sparepartRepository, ITypeRepository typeRepository,
     ISpecialSparepartDetailRepository wheelDetailRepository, IBrandRepository brandRepository,
     ISparepartDetailRepository sparepartDetailRepository,
     ISpecialSparepartDetailRepository specialSparepartDetailRepository,
     ISparepartStockCardRepository sparepartStokCardRepository,
     IReferenceRepository referenceRepository,
     IUnitOfWork unitOfWork)
     : base()
 {
     _customerRepository = customerRepository;
     _vehicleGroupRepository = vehicleGroupRepository;
     _vehicleRepository = vehicleRepository;
     _vehicleDetailRepository = vehicleDetailRepository;
     _vehicleWheelRepository = vehicleWheelRepository;
     _specialSparepartDetailRepository = wheelDetailRepository;
     _sparepartDetailRepository = sparepartDetailRepository;
     _sparepartRepository = sparepartRepository;
     _typeRepository = typeRepository;
     _brandRepository = brandRepository;
     _sparepartStokCardRepository = sparepartStokCardRepository;
     _referenceRepository = referenceRepository;
     _unitOfWork = unitOfWork;
 }
Esempio n. 3
0
 public ProductController(IBrandRepository brandRepository, ITagRepository tagRepository, IProductRepository productRepository, IStoreRepository storeRepository)
 {
     _productRepository = productRepository;
     _storeRepository = storeRepository;
     _brandRepository = brandRepository;
     _tagRepository = tagRepository;
 }
 public BrandEditorModel(IBrandRepository brandRepository,
     IUnitOfWork unitOfWork)
     : base()
 {
     _brandRepository = brandRepository;
     _unitOfWork = unitOfWork;
 }
Esempio n. 5
0
 public BrandController(IBrandRepository brandRepository
     ,IResourceService resourceService
     ,IResourceRepository resourceRepository)
 {
     this._brandRepository = brandRepository;
     _resourceService = resourceService;
     _resourceRepository = resourceRepository;
 }
 public SectionController(ISectionRepository sectionRepo,
     IStoreRepository storeRepo,
     IBrandRepository brandRepo)
 {
     _sectionRepo = sectionRepo;
     _brandRepo = brandRepo;
     _storeRepo = storeRepo;
 }
Esempio n. 7
0
 public CarsController(ICarRepository carRepository, IBrandRepository brandsTreeRepository,
     IPriceRepository changePriceRepository, IModelCarRepository modelCarRepository)
 {
     _carRepository = carRepository;
     _brandsTreeRepository = brandsTreeRepository;
     _changePriceRepository = changePriceRepository;
     _modelCarRepository = modelCarRepository;
 }
Esempio n. 8
0
        public BrandController(IBrandRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.BrandRepository = repository;
        }
 public HotwordController(IHotWordRepository hotwordRepo,
     IBrandRepository brandRepo,
     IStoreRepository storeRepo)
 {
     _hotwordRepo = hotwordRepo;
     _brandRepo = brandRepo;
     _storeRepo = storeRepo;
    
 }
Esempio n. 10
0
        public CatalogController(ICarFiltersRepository carRepository, IBrandRepository brandRepository,
            IPriceRepository changePriceRepository, IModelCarRepository modelCarRepository)
        {
            _carRepository = carRepository;
            _brandRepository = brandRepository;
            _modelRepository = modelCarRepository;
            _changePriceRepository = changePriceRepository;

            _columns = 4;
            _elementsPerPage = 12;
        }
Esempio n. 11
0
 public UserAuthController(IUserAuthRepository authRepo
     ,IStoreRepository storeRepo
     ,IBrandRepository brandRepo
     ,ICustomerRepository customerRepo)
 {
     _authRepo = authRepo;
     _storeRepo = storeRepo;
     _brandRep = brandRepo;
     _customerRepo = customerRepo;
    
 }
 public ProBulkUploadController(IBrandRepository brandRepo,
     ITagRepository tagRepo,
     IStoreRepository storeRepo,
     ICategoryPropertyRepository propertyRepo,
     ICategoryPropertyValueRepository valueRepo
    )
 {
     _brandRepo = brandRepo;
     _tagRepo = tagRepo;
     _storeRepo = storeRepo;
     _propertyRepo = propertyRepo;
     _valueRepo = valueRepo;
 }
Esempio n. 13
0
 protected BaseMappingManager()
 {
     _resourceRepository = ServiceLocator.Current.Resolve<IResourceRepository>();
     _pprRepository = ServiceLocator.Current.Resolve<IPromotionProductRelationRepository>();
     _stprRepository = ServiceLocator.Current.Resolve<ISpecialTopicProductRelationRepository>();
     _storeRepository = ServiceLocator.Current.Resolve<IStoreRepository>();
     _tagRepository = ServiceLocator.Current.Resolve<ITagRepository>();
     _specialTopicRepository = ServiceLocator.Current.Resolve<ISpecialTopicRepository>();
     _promotionRepository = ServiceLocator.Current.Resolve<IPromotionRepository>();
     _brandRepository = ServiceLocator.Current.Resolve<IBrandRepository>();
     _customerRepository = ServiceLocator.Current.Resolve<ICustomerRepository>();
     _productRepository = ServiceLocator.Current.Resolve<IProductRepository>();
 }
Esempio n. 14
0
        public BrandController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.BrandRepository = new MixERP.Net.Schemas.Core.Data.Brand
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Esempio n. 15
0
 public Context(DbContext context = null, 
             IUserRepository users = null,
             IUserProfileRepository profiles = null,
             IModelRepository models = null,
             IBrandRepository brands = null,
             ITypeRepository types =null,
             ICarRepository cars =null,
             IImageCarRepository imageCars =null)
 {
     _db = context ?? new CarDatabase();
     Users = users ?? new UserRepository(_db,true);
     Profiles = profiles ?? new UserProfileRepository(_db, true);
     Models = models ?? new ModelRepository(_db, true);
     Brands = brands ?? new BrandRepository(_db, true);
     Types = types ?? new TypeRepository(_db, true);
     Cars = cars ?? new CarRepository(_db, true);
     ImageCars = imageCars ?? new ImageCarRepository(_db, true);
 }
 public BrandApplicationService(RepositoryFactory repositoryFactory)
 {
     _repositoryFactory = repositoryFactory;
     _brandRepository = _repositoryFactory.Build<IBrandRepository, Brand>();
 }
Esempio n. 17
0
 public PlayerQueries(IPlayerRepository playerRepo, IBrandRepository brandRepo)
 {
     _playerRepo = playerRepo;
     _brandRepo = brandRepo;
 }
Esempio n. 18
0
 public AdminController(IBrandRepository brandRepo)
 {
     brandRepository = brandRepo;
     ViewData["fistPage"] = 1;
     ViewData["LastPage"] = 3;
 }
Esempio n. 19
0
 public BrandMenu(IBrandRepository brandRepository)
 {
     _brandRepository = brandRepository;
 }
Esempio n. 20
0
 public BrandController(IBrandRepository repostory)
 {
     _repository = repostory;
 }
Esempio n. 21
0
 public CategoryAndBrandMenu(ICategoryRepository categoryRepository, IBrandRepository brandRepository)
 {
     this.categoryRepository = categoryRepository;
     this.brandRepository    = brandRepository;
 }
Esempio n. 22
0
 public BrandBusiness(IBrandRepository BrandRes)
 {
     _res = BrandRes;
 }
Esempio n. 23
0
 public VehicleEditorModel(ICustomerRepository customerRepository, IVehicleGroupRepository vehicleGroupRepository,
                           IVehicleRepository vehicleRepository,
                           IVehicleDetailRepository vehicleDetailRepository, IVehicleWheelRepository vehicleWheelRepository,
                           ISparepartRepository sparepartRepository, ITypeRepository typeRepository,
                           ISpecialSparepartDetailRepository wheelDetailRepository, IBrandRepository brandRepository,
                           //ISparepartDetailRepository sparepartDetailRepository,
                           ISpecialSparepartDetailRepository specialSparepartDetailRepository,
                           ISparepartStockCardRepository sparepartStokCardRepository,
                           ISparepartStockCardDetailRepository sparepartStokCardDetailRepository,
                           IReferenceRepository referenceRepository,
                           IUnitOfWork unitOfWork)
     : base()
 {
     _customerRepository               = customerRepository;
     _vehicleGroupRepository           = vehicleGroupRepository;
     _vehicleRepository                = vehicleRepository;
     _vehicleDetailRepository          = vehicleDetailRepository;
     _vehicleWheelRepository           = vehicleWheelRepository;
     _specialSparepartDetailRepository = wheelDetailRepository;
     //_sparepartDetailRepository = sparepartDetailRepository;
     _sparepartRepository               = sparepartRepository;
     _typeRepository                    = typeRepository;
     _brandRepository                   = brandRepository;
     _sparepartStokCardRepository       = sparepartStokCardRepository;
     _sparepartStokCardDetailRepository = sparepartStokCardDetailRepository;
     _referenceRepository               = referenceRepository;
     _unitOfWork = unitOfWork;
 }
Esempio n. 24
0
 public BrandService(IBrandRepository brandRepository)
 {
     _brandRepository = brandRepository;
     _messageMapper   = new MessageMapper();
 }
Esempio n. 25
0
 public Handler(IBrandRepository brandRepository)
 {
     _brandRepository = brandRepository;
 }
 public SupplierController(ISupplierRepository supplierRepository, IBrandRepository brandRepository)
 {
     _supplierRepository = supplierRepository;
     _brandRepository    = brandRepository;
 }
Esempio n. 27
0
 public BrandModelBinder(IBrandRepository service)
 {
     _brandRepository = service;
 }
 public BrandService(ProductDatabaseContext productDatabaseContext, IOptions <ProductSettings> productSettings, IHttpContextAccessor iHttpContextAccessor)
 {
     _productDatabaseContext = productDatabaseContext;
     _brandRepository        = new BrandRepository(productDatabaseContext, productSettings, iHttpContextAccessor);
 }
Esempio n. 29
0
 public CarController(ICarRepository carRepository, IBrandRepository brandRepository)
 {
     _carRepository   = carRepository;
     _brandRepository = brandRepository;
 }
Esempio n. 30
0
 public BrandBAL(IBrandRepository BrandRepository)
 {
     _BrandRepository = BrandRepository;
 }
 public BrandsController(IBrandRepository brandRepository, IMapper mapper)
 {
     _brandRepository = brandRepository;
     _mapper          = mapper;
 }
Esempio n. 32
0
 public BrandService(IBrandRepository brandRepository, IMapper mapper)
 {
     _brandRepository = brandRepository ?? throw new ArgumentNullException(nameof(brandRepository));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public HomeController(ILogger <HomeController> logger, ITopCategoryRepository topRepo, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IBrandRepository brandRepo, IProductRepository productRepo, IStringLocalizer <HomeController> localizer, IEmailNewsletterRepository emailNewsletterRepo, IErrorLogRepository errorRepo, IHostingEnvironment hostingEnvironment, IContactUsRepository contactRepo)
 {
     _logger              = logger;
     _topRepo             = topRepo;
     _midRepo             = midRepo;
     _subRepo             = subRepo;
     _brandRepo           = brandRepo;
     _productRepo         = productRepo;
     _localizer           = localizer;
     _emailNewsletterRepo = emailNewsletterRepo;
     _errorRepo           = errorRepo;
     _hostingEnvironment  = hostingEnvironment;
     _contactRepo         = contactRepo;
 }
 public BrandController(IBrandRepository brandRepository, IApiConfiguration config)
 {
     _brandRepository = brandRepository;
     _config          = config;
 }
Esempio n. 35
0
 public BrandService(IUnitOfWork unitOfWork, IBrandRepository repository) : base(unitOfWork, repository)
 {
 }
Esempio n. 36
0
 public ModelsController(IModelCarRepository modelRepository, IBrandRepository brandRepository)
 {
     _modelRepository = modelRepository;
     _brandRepository = brandRepository;
 }
Esempio n. 37
0
 public PlayerQueries(IPlayerRepository playerRepo, IBrandRepository brandRepo)
 {
     _playerRepo = playerRepo;
     _brandRepo  = brandRepo;
 }
Esempio n. 38
0
 public BrandModelBinder(IBrandRepository service)
 {
     _brandRepository = service;
 }
Esempio n. 39
0
 /// <summary>
 /// Constructor that requires a repository as a parameter.
 /// </summary>
 /// <param name="brandRepository">Repository to be used.</param>
 public BrandService(IBrandRepository brandRepository)
 {
     _brandRepository = brandRepository;
 }
Esempio n. 40
0
 public BrandServices(IBrandRepository repository)
 {
     this.repository = repository;
     baseRepository  = repository;
 }
Esempio n. 41
0
 public BrandsController(IBrandRepository brandRepo)
 {
     _brandRepository = brandRepo;
 }
Esempio n. 42
0
 public CreateBrandCommandHandler(IBrandRepository brandRepository, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _brandRepository = brandRepository;
     _unitOfWork      = unitOfWork;
     _mapper          = mapper;
 }
 public MiniSliderController(ITopCategoryRepository topRepo, IErrorLogRepository errorRepo, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IProductRepository productRepo, IMapper mapper, ISliderRepository sliderRepo, IBrandRepository brandRepo, IWebHostEnvironment environment, IMiniSliderRepository miniSliderRepo)
 {
     _topRepo        = topRepo;
     _midRepo        = midRepo;
     _subRepo        = subRepo;
     _productRepo    = productRepo;
     _errorRepo      = errorRepo;
     _mapper         = mapper;
     _sliderRepo     = sliderRepo;
     _brandRepo      = brandRepo;
     _environment    = environment;
     _miniSliderRepo = miniSliderRepo;
 }
Esempio n. 44
0
 public UpdateBrandNameMustBeUnique(IBrandRepository brandRepository)
 {
     _brandRepository = brandRepository;
 }
Esempio n. 45
0
 public BrandService(IBrandRepository brand)
 {
     brandRepository = brand;
     messageMapper   = new MessageMapper();
 }
        public EditLicenseeValidator(IBrandRepository brandRepository)
        {
            CascadeMode = CascadeMode.StopOnFirstFailure;

            RuleFor(x => x.Name)
            .NotNull()
            .WithMessage("{\"text\": \"app:common.requiredField\"}")
            .Length(1, 50)
            .WithMessage("{{\"text\": \"app:common.exceedMaxLength\", \"variables\": {{\"length\": \"{0}\"}}}}", 50)
            .Must((data, x) => !brandRepository.Licensees.Any(y => y.Name == x && y.Id != data.Id))
            .WithMessage("{\"text\": \"app:common.nameUnique\"}");

            RuleFor(x => x.CompanyName)
            .NotNull()
            .WithMessage("{\"text\": \"app:common.requiredField\"}")
            .Length(1, 50)
            .WithMessage("{{\"text\": \"app:common.exceedMaxLength\", \"variables\": {{\"length\": \"{0}\"}}}}", 50);

            RuleFor(x => x.ContractStart)
            .Must((data, x) =>
            {
                var licensee = brandRepository.Licensees.Include(y => y.Contracts).Single(y => y.Id == data.Id);

                if (licensee.Status == LicenseeStatus.Inactive || licensee.ContractStart == x)
                {
                    return(true);
                }

                return(licensee.Contracts.Where(y => !y.IsCurrentContract).All(y => x > y.EndDate));
            })
            .WithMessage("{\"text\": \"app:licensee.contractStartNotAfterPreviousContracts\"}");

            RuleFor(x => x.ContractEnd)
            .Must((data, x) => x.HasValue || data.OpenEnded)
            .WithMessage("{\"text\": \"app:licensee.contractEndRequired\"}")
            .Must((data, x) => !x.HasValue || x.Value > data.ContractStart)
            .WithMessage("{\"text\": \"app:licensee.contractEndNotAftereStart\"}");

            RuleFor(x => x.Email)
            .NotNull()
            .WithMessage("{\"text\": \"app:common.requiredField\"}");

            RuleFor(x => x.BrandCount)
            .GreaterThanOrEqualTo(0)
            .LessThan(9999)
            .WithMessage(
                "{{\"text\": \"app:common.numberOutOfRange\", \"variables\": {{\"minimum\": \"{1}\", \"maximum\": \"{2}\"}}}}",
                0, 9999);

            RuleFor(x => x.WebsiteCount)
            .GreaterThanOrEqualTo(0)
            .LessThan(9999)
            .WithMessage(
                "{{\"text\": \"app:common.numberOutOfRange\", \"variables\": {{\"minimum\": \"{1}\", \"maximum\": \"{2}\"}}}}",
                0, 9999);

            RuleFor(x => x.Products)
            .NotNull()
            .NotEmpty()
            .WithMessage("{\"text\": \"app:common.requiredField\"}");

            RuleFor(x => x.Currencies)
            .NotNull()
            .NotEmpty()
            .WithMessage("{\"text\": \"app:common.requiredField\"}");

            RuleFor(x => x.Countries)
            .NotNull()
            .NotEmpty()
            .WithMessage("{\"text\": \"app:common.requiredField\"}");

            RuleFor(x => x.Languages)
            .NotNull()
            .NotEmpty()
            .WithMessage("{\"text\": \"app:common.requiredField\"}");

            RuleFor(x => x.Remarks)
            .NotNull()
            .WithMessage("{\"text\": \"app:common.requiredField\"}");
        }
Esempio n. 47
0
 public BrandService(IContext context)
 {
     _context = context;
     _brands = context.Brands;
 }
Esempio n. 48
0
 public GetAllBrandQueryHandler(IBrandRepository repository)
 {
     _repository = repository;
 }
Esempio n. 49
0
 public BrandsController(IBrandRepository brandRepo)
 {
     _brandRepository = brandRepo;
 }
Esempio n. 50
0
 public BrandDataService(IBrandRepository brandRepository, Contract.IResourceService resourceService)
 {
     this._brandRepository = brandRepository;
     this._resourceService = resourceService;
 }
Esempio n. 51
0
 public BrandService(IBrandRepository brandRepo)
 {
     _brandRepo = brandRepo;
 }
Esempio n. 52
0
 public BrandController(IBrandRepository brandRepository, ICountryRepository countryRepository)
 {
     _brandRepository   = brandRepository;
     _countryRepository = countryRepository;
 }
Esempio n. 53
0
 public BrandService(IBrandRepository brandRepository)
 {
     _brandRepository = brandRepository;
 }
Esempio n. 54
0
 public BrandAppService(
     IBrandRepository repository,
     IUrlRecordService urlRecordService) : base(repository)
 {
     _urlRecordService = urlRecordService;
 }
 public HomeController(IProductRepository productRepository, IGroupRepository groupRepository, ISubGroupRepository subGroupRepository, IBrandRepository brandRepository)
 {
     _productRepository  = productRepository;
     _groupRepository    = groupRepository;
     _subGroupRepository = subGroupRepository;
     _brandRepository    = brandRepository;
 }