public FrmProductEntry() { InitializeComponent(); _brandService = new BrandService(); _flavourService = new FlavourService(); _unitService = new UnitService(); _productionMaterialService = new ProductionMaterialService(); _productService = new ProductService(); LoadCombos(); }
public ProductController( ICommerceDatabase db, ISettingService settingService, IProductService productService, IProductTypeService productTypeService, IBrandService brandService, ICategoryService categoryService, IExtendedQueryManager extendedQueryManager) { _db = db; _settingService = settingService; _productService = productService; _productTypeService = productTypeService; _brandService = brandService; _categoryService = categoryService; _extendedQueryManager = extendedQueryManager; }
public FrmBrandEntry(BrandModel model, Form frmForm) { InitializeComponent(); _frmForm = frmForm; _brandService = new BrandService(); if (model != null) { _isNewMode = false; _brandId = model.BrandId; txtBrandName.Text = model.BrandName; txtRemarks.Text = model.Description; btnAdd.Text = @"Update"; } else { _isNewMode = true; btnAdd.Text = @"Save"; } }
public AdminController(IUserService userservice, IBrandService brandService) { _userservice = userservice; _brandService = brandService; }
public BrandController(IBrandService brandService) { _brandService = brandService; }
public ProductController(ICategoryService categoryService, IBrandService brandService) { _categoryService = categoryService; _brandService = brandService; }
public IndexModel(IBrandService brandService) { _brandService = brandService; }
public BrandApiController(IRepository <Brand> brandRepository, IBrandService brandService) { _brandRepository = brandRepository; _brandService = brandService; }
public ProductController(IProductService productService, ISubCategoryService subCategoryService, ICategoryservice categoryService, IBrandService brandService, ICityService cityService, IFileProvider fileProvider, IHostingEnvironment env, IHostingEnvironment hostingEnvironment) { _productService = productService; _brandService = brandService; _categoryService = categoryService; _subCategoryService = subCategoryService; _cityService = cityService; _fileProvider = fileProvider; _env = env; _hostingEnvironment = hostingEnvironment; }
public NotFoundController(IConfiguration configuration, IMemoryCache cache, IBrandService brandService, IBranchContactService branchContactService, IMenuService menuService, ISettingService settingService, ISocialNetworkService socialNetworkService, ILanguageService languageService) : base(configuration, cache, brandService, branchContactService, menuService, settingService, socialNetworkService, languageService) { }
public CarManager(ICarDal carService, IBrandService brandService) { _carDal = carService; _brandService = brandService; }
public HomeController(IProductService productService, ICategoryservice categoryService, ISubCategoryService subCategoryService, IBrandService brandService) { _productService = productService; _categoryService = categoryService; _subCategoryService = subCategoryService; _brandService = brandService; }
public HomeController(IProductService productService, IProductCategoryService productAdvertisementService, IBrandService brandService) { _productService = productService; _productCategoryService = productAdvertisementService; _brandService = brandService; }
public BrandController(IHttpContextAccessor httpContextAccessor, IBrandService brandService) : base(httpContextAccessor) { _brandService = brandService; _userId = this.GetUserId(); }
public CarsController(ICarService carManager, IBrandService brandService, IColorService colorService) { _carManager = carManager; _colorService = colorService; _brandService = brandService; }
public VehicleInfoController(IVehicleInfoService vehicleInfoService, IVehicleTypeService vehicleTypeService, IBrandService brandService, IOwnerInfoService ownerInfoService) { _vehicleInfoService = vehicleInfoService; _vehicleTypeService = vehicleTypeService; _brandService = brandService; _ownerInfoService = ownerInfoService; }
public BrandValidator(IEnumerable <IValidatorConsumer <BrandDto> > validators, ITranslationService translationService, IPictureService pictureService, IBrandService brandService, IBrandLayoutService brandLayoutService) : base(validators) { RuleFor(x => x.Name).NotEmpty().WithMessage(translationService.GetResource("Api.Catalog.Brand.Fields.Name.Required")); RuleFor(x => x).MustAsync(async(x, y, context) => { if (!string.IsNullOrEmpty(x.PictureId)) { var picture = await pictureService.GetPictureById(x.PictureId); if (picture == null) { return(false); } } return(true); }).WithMessage(translationService.GetResource("Api.Catalog.Brand.Fields.PictureId.NotExists")); RuleFor(x => x).MustAsync(async(x, y, context) => { if (!string.IsNullOrEmpty(x.BrandLayoutId)) { var layout = await brandLayoutService.GetBrandLayoutById(x.BrandLayoutId); if (layout == null) { return(false); } } return(true); }).WithMessage(translationService.GetResource("Api.Catalog.Brand.Fields.BrandLayoutId.NotExists")); RuleFor(x => x).MustAsync(async(x, y, context) => { if (!string.IsNullOrEmpty(x.Id)) { var brand = await brandService.GetBrandById(x.Id); if (brand == null) { return(false); } } return(true); }).WithMessage(translationService.GetResource("Api.Catalog.Brand.Fields.Id.NotExists")); }
public BrandsController(IUnitOfWorkAsync _unitOfWorkAsync, IBrandService _brandService) { unitOfWorkAsync = _unitOfWorkAsync; brandService = _brandService; brandLogic = new BrandLogic(_brandService); }
public BrandsController(IBrandService service, IMapper mapper, ILogger <Brand> logger) : base(service, mapper, logger) => Service = service;
public BrandController(IBrandService brandService) { this.brandService = brandService; }
public InitStaticData(IBeerService beerService, IBeerTypeService beerTypeService, IBrandService brandService, IUserService UserService) { this.BeerService = beerService; this.BeerTypeService = beerTypeService; this.BrandService = brandService; this.UserService = UserService; }
public ItemService(IItemRepository itemRepository, IProductRepository productRepository, IWarehouseService warehouseService, ILocationService locationService, IBrandService brandService, IProductService productService) { _itemRepository = itemRepository; _productRepository = productRepository; _warehouseService = warehouseService; _locationService = locationService; _brandService = brandService; _productService = productService; }
public BrandsController(IBrandService brandService, IMapper mapper) { _brandService = brandService; _mapper = mapper; }
public AdminController(IProductService productService, IBrandService brandService, IPictureService pictureService) { _productService = productService; _brandService = brandService; _pictureService = pictureService; }
public ModelService(DealershipContext context, IBrandService brandService) { this.context = context; this.brandService = brandService; }
public BrandController(IRepository<Brand> brandRepository, IBrandService brandService) { this.brandRepository = brandRepository; this.brandService = brandService; }
public CarManager(ICarDAL carDAL, IBrandService brandService) { _carDAL = carDAL; _brandService = brandService; }
public CarManager(ICarDal carDal, IBrandService brandService, IColorService colorService) { _carDal = carDal; _brandService = brandService; _colorService = colorService; }
public BrandsController(IBrandService brandService) { _brandService = brandService; }
public BrandController(IAuthorizationService authorizationService, IBrandService brandService, IHubContext <QLVLXD_Hub> hubContext) { _authorizationService = authorizationService; _brandService = brandService; _hubContext = hubContext; }
public BrandController(IBrandService service) { this.service = service; }
public BrandController(IBrandService brandService, IQueryableRepository <Brand> queryableRepository, IQueryableRepository <vwRP_StockCount> totalRowsRepository) { _brandService = brandService; _queryableRepository = queryableRepository; _totalRowsRepository = totalRowsRepository; }
public BaseDataController(IGenderService GenderService, ICategroyService CategoryService, IBrandService BrandService) { genderService = GenderService; categoryService = CategoryService; brandService = BrandService; }
public BrandsController(IBrandService brandService, ICarService carService) { _brandService = brandService; _carService = carService; }
public FrmBrand() { _CommonService = new CommonService(); _brandService = new BrandService(); InitializeComponent(); }
public ShopSearchController(IShopService iShopService, IBrandService iBrandService) { _iShopService = iShopService; _iBrandService = iBrandService; }
public BrandController(IBrandService brandService, IGenericRepository <Brand> genericRepository) { _brandService = brandService; _genericRepository = genericRepository; }