Ejemplo n.º 1
0
 public HomeController(ISubCategoryServices subcategoryServices, IBrandServices brandServices, IProductServices productServices, IColorsServices colorsServices)
 {
     _subcategoryServices = subcategoryServices;
     _brandServices       = brandServices;
     _productServices     = productServices;
     _colorsServices      = colorsServices;
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="productServices">declare productServices</param>
 public ProductController(IProductServices productServices, IBrandServices brandServices, ICategoryServices categoryServices, ResourcesServices resourcesServices)
 {
     _productServices   = productServices;
     _brandServices     = brandServices;
     _categoryServices  = categoryServices;
     _resourcesServices = resourcesServices;
 }
Ejemplo n.º 3
0
 public BrandController(IBrandServices brandServices,
                        ResourcesServices <CommonResources> commonLocalizer,
                        ResourcesServices <BrandResources> brandLocalizer)
 {
     _brandServices   = brandServices;
     _commonLocalizer = commonLocalizer;
     _brandLocalizer  = brandLocalizer;
 }
Ejemplo n.º 4
0
 public ProductsController(IProductServices productServices, IMapper mapper,
                           IBrandServices brandServices, ICategoryServices categoryServices)
 {
     _productServices  = productServices ?? throw new ArgumentNullException(nameof(productServices));
     _mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _brandServices    = brandServices ?? throw new ArgumentNullException(nameof(brandServices));
     _categoryServices = categoryServices ?? throw new ArgumentNullException(nameof(categoryServices));
 }
Ejemplo n.º 5
0
        public BrandValidator(ResourcesServices <CommonResources> commonlocalizer, IBrandServices brandService)
        {
            RuleFor(x => x.BrandName).NotNull()
            .WithMessage(commonlocalizer.GetLocalizedHtmlString("msg_NotEmpty"));

            RuleFor(x => x.BrandName).Must((reg, c) => !brandService.IsExistedName(reg.BrandName, reg.Id))
            .WithMessage((reg, c) => string.Format(commonlocalizer.GetLocalizedHtmlString("msg_AlreadyExists"), c));
        }
Ejemplo n.º 6
0
 public HomeController(IBasketServices basketServices, ICategoryServices categoryServices, IColorServices colorServices, ISizeServices sizeServices, IBrandServices brandServices)
 {
     _categoryServices = categoryServices;
     _colorServices    = colorServices;
     _sizeServices     = sizeServices;
     _brandServices    = brandServices;
     _basketServices   = basketServices;
 }
Ejemplo n.º 7
0
 public ProductsController(IProductServices productServices, IUserServices userServices, IImageServices imageServices, IBrandServices brandServices, IStockServices stockServices, IExportProductServices exportProductServices)
 {
     _productServices       = productServices;
     _userServices          = userServices;
     _imageServices         = imageServices;
     _brandServices         = brandServices;
     _stockServices         = stockServices;
     _exportProductServices = exportProductServices;
 }
Ejemplo n.º 8
0
 public HomeController(ILogger <HomeController> logger, IProductServices productServices, ICategoryServices categoryServices,
                       IBrandServices brandServices, IClientServices clientServices, UserManager <User> userManager, IMapper mapper)
 {
     _logger           = logger;
     _productServices  = productServices ?? throw new ArgumentNullException(nameof(productServices));
     _categoryServices = categoryServices ?? throw new ArgumentNullException(nameof(categoryServices));
     _brandServices    = brandServices ?? throw new ArgumentNullException(nameof(brandServices));
     _clientServices   = clientServices ?? throw new ArgumentNullException(nameof(brandServices));
     _mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
        public BrandValidator(ResourcesServices _resourcesServices, IBrandServices _brandServices)
        {
            var brands = _brandServices.GetBrands();

            foreach (var brand in brands)
            {
                RuleFor(x => x.BrandName).NotEqual(brand.BrandName).WithMessage(_resourcesServices.GetLocalizedHtmlString("vld_alreadyexists"));
            }
            RuleFor(x => x.BrandName).NotNull().WithMessage(_resourcesServices.GetLocalizedHtmlString("vld_notnull"));
        }
 public VehiclesController(
     IVehicleServices vehicleService,
     IBrandServices brandServices,
     ICatalogService catalogService,
     UserManager <IdentityUser> userManager)
 {
     _vehicleServices = vehicleService;
     _brandServices   = brandServices;
     _catalogService  = catalogService;
     _userManager     = userManager;
 }
Ejemplo n.º 11
0
 public ProductController(IProductServices productServices,
                          ICategoryServices categoryServices,
                          IBrandServices brandServices,
                          ResourcesServices <CommonResources> commonLocalizer,
                          ResourcesServices <ProductResources> productLocalizer
                          )
 {
     _productServices  = productServices;
     _categoryServices = categoryServices;
     _brandServices    = brandServices;
     _commonLocalizer  = commonLocalizer;
     _productLocalizer = productLocalizer;
 }
Ejemplo n.º 12
0
 public Brand(IBrandServices brandServices)
 {
     _brandServices = brandServices;
 }
Ejemplo n.º 13
0
 public BrandsController(IBrandServices brandServices, IMapper mapper)
 {
     _brandServices = brandServices ?? throw new ArgumentNullException(nameof(brandServices));
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 14
0
 public BrandPresenter(IBrandServices brandServices)
 {
     _brandsServices = brandServices;
 }
Ejemplo n.º 15
0
 public AdminProductController(IProductServices productServices, IBrandServices brandServices)
 {
     _productServices = productServices;
     _brandServices   = brandServices;
 }
Ejemplo n.º 16
0
 public BrandsController(IBrandServices brandServices)
 {
     _brandServices = brandServices;
 }
Ejemplo n.º 17
0
 public AdminBrandController(IBrandServices brandServices)
 {
     _brandServices = brandServices;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="brandServices">declare brandServices</param>
 public BrandController(IBrandServices brandServices, ResourcesServices resourcesServices)
 {
     _brandServices     = brandServices;
     _resourcesServices = resourcesServices;
 }
 public VehicleController(IVehicleServices vehicleServices,
                          IBrandServices brandServices)
 {
     _vehicleServices = vehicleServices;
     _brandServices   = brandServices;
 }