public HomeController(ISubCategoryServices subcategoryServices, IBrandServices brandServices, IProductServices productServices, IColorsServices colorsServices) { _subcategoryServices = subcategoryServices; _brandServices = brandServices; _productServices = productServices; _colorsServices = colorsServices; }
/// <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; }
public BrandController(IBrandServices brandServices, ResourcesServices <CommonResources> commonLocalizer, ResourcesServices <BrandResources> brandLocalizer) { _brandServices = brandServices; _commonLocalizer = commonLocalizer; _brandLocalizer = brandLocalizer; }
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)); }
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)); }
public HomeController(IBasketServices basketServices, ICategoryServices categoryServices, IColorServices colorServices, ISizeServices sizeServices, IBrandServices brandServices) { _categoryServices = categoryServices; _colorServices = colorServices; _sizeServices = sizeServices; _brandServices = brandServices; _basketServices = basketServices; }
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; }
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; }
public ProductController(IProductServices productServices, ICategoryServices categoryServices, IBrandServices brandServices, ResourcesServices <CommonResources> commonLocalizer, ResourcesServices <ProductResources> productLocalizer ) { _productServices = productServices; _categoryServices = categoryServices; _brandServices = brandServices; _commonLocalizer = commonLocalizer; _productLocalizer = productLocalizer; }
public Brand(IBrandServices brandServices) { _brandServices = brandServices; }
public BrandsController(IBrandServices brandServices, IMapper mapper) { _brandServices = brandServices ?? throw new ArgumentNullException(nameof(brandServices)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public BrandPresenter(IBrandServices brandServices) { _brandsServices = brandServices; }
public AdminProductController(IProductServices productServices, IBrandServices brandServices) { _productServices = productServices; _brandServices = brandServices; }
public BrandsController(IBrandServices brandServices) { _brandServices = brandServices; }
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; }