コード例 #1
0
 public FrmProductEntry()
 {
     InitializeComponent();
     _brandService = new BrandService();
     _flavourService = new FlavourService();
     _unitService = new UnitService();
     _productionMaterialService = new ProductionMaterialService();
     _productService = new ProductService();
     LoadCombos();
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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";
     }
 }
コード例 #4
0
 public AdminController(IUserService userservice, IBrandService brandService)
 {
     _userservice  = userservice;
     _brandService = brandService;
 }
コード例 #5
0
ファイル: BrandController.cs プロジェクト: Wipcore/Ecommerce
 public BrandController(IBrandService brandService)
 {
     _brandService = brandService;
 }
コード例 #6
0
 public ProductController(ICategoryService categoryService, IBrandService brandService)
 {
     _categoryService = categoryService;
     _brandService    = brandService;
 }
コード例 #7
0
 public IndexModel(IBrandService brandService)
 {
     _brandService = brandService;
 }
コード例 #8
0
 public BrandApiController(IRepository <Brand> brandRepository, IBrandService brandService)
 {
     _brandRepository = brandRepository;
     _brandService    = brandService;
 }
コード例 #9
0
 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;
 }
コード例 #10
0
 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)
 {
 }
コード例 #11
0
 public CarManager(ICarDal carService, IBrandService brandService)
 {
     _carDal       = carService;
     _brandService = brandService;
 }
コード例 #12
0
 public HomeController(IProductService productService, ICategoryservice categoryService, ISubCategoryService subCategoryService, IBrandService brandService)
 {
     _productService     = productService;
     _categoryService    = categoryService;
     _subCategoryService = subCategoryService;
     _brandService       = brandService;
 }
コード例 #13
0
 public HomeController(IProductService productService, IProductCategoryService productAdvertisementService, IBrandService brandService)
 {
     _productService         = productService;
     _productCategoryService = productAdvertisementService;
     _brandService           = brandService;
 }
コード例 #14
0
 public BrandController(IHttpContextAccessor httpContextAccessor, IBrandService brandService) : base(httpContextAccessor)
 {
     _brandService = brandService;
     _userId       = this.GetUserId();
 }
コード例 #15
0
 public CarsController(ICarService carManager, IBrandService brandService, IColorService colorService)
 {
     _carManager   = carManager;
     _colorService = colorService;
     _brandService = brandService;
 }
コード例 #16
0
 public VehicleInfoController(IVehicleInfoService vehicleInfoService, IVehicleTypeService vehicleTypeService, IBrandService brandService, IOwnerInfoService ownerInfoService)
 {
     _vehicleInfoService = vehicleInfoService;
     _vehicleTypeService = vehicleTypeService;
     _brandService       = brandService;
     _ownerInfoService   = ownerInfoService;
 }
コード例 #17
0
        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"));
        }
コード例 #18
0
 public BrandsController(IUnitOfWorkAsync _unitOfWorkAsync, IBrandService _brandService)
 {
     unitOfWorkAsync = _unitOfWorkAsync;
     brandService    = _brandService;
     brandLogic      = new BrandLogic(_brandService);
 }
コード例 #19
0
ファイル: BrandsController.cs プロジェクト: eacet/UcuzSepet
 public BrandsController(IBrandService service, IMapper mapper, ILogger <Brand> logger)
     : base(service, mapper, logger) => Service = service;
コード例 #20
0
 public BrandController(IBrandService brandService)
 {
     this.brandService = brandService;
 }
コード例 #21
0
 public InitStaticData(IBeerService beerService, IBeerTypeService beerTypeService, IBrandService brandService, IUserService UserService)
 {
     this.BeerService     = beerService;
     this.BeerTypeService = beerTypeService;
     this.BrandService    = brandService;
     this.UserService     = UserService;
 }
コード例 #22
0
 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;
 }
コード例 #23
0
 public BrandsController(IBrandService brandService, IMapper mapper)
 {
     _brandService = brandService;
     _mapper       = mapper;
 }
コード例 #24
0
 public AdminController(IProductService productService, IBrandService brandService, IPictureService pictureService)
 {
     _productService = productService;
     _brandService   = brandService;
     _pictureService = pictureService;
 }
コード例 #25
0
ファイル: ModelService.cs プロジェクト: ssdody/WheelerDealers
 public ModelService(DealershipContext context, IBrandService brandService)
 {
     this.context      = context;
     this.brandService = brandService;
 }
コード例 #26
0
 public BrandController(IRepository<Brand> brandRepository, IBrandService brandService)
 {
     this.brandRepository = brandRepository;
     this.brandService = brandService;
 }
コード例 #27
0
ファイル: CarManager.cs プロジェクト: Fatmasahin/ReCapProject
 public CarManager(ICarDAL carDAL, IBrandService brandService)
 {
     _carDAL       = carDAL;
     _brandService = brandService;
 }
コード例 #28
0
 public CarManager(ICarDal carDal, IBrandService brandService, IColorService colorService)
 {
     _carDal       = carDal;
     _brandService = brandService;
     _colorService = colorService;
 }
コード例 #29
0
 public BrandsController(IBrandService brandService)
 {
     _brandService = brandService;
 }
コード例 #30
0
 public BrandController(IAuthorizationService authorizationService, IBrandService brandService, IHubContext <QLVLXD_Hub> hubContext)
 {
     _authorizationService = authorizationService;
     _brandService         = brandService;
     _hubContext           = hubContext;
 }
コード例 #31
0
 public BrandController(IBrandService service)
 {
     this.service = service;
 }
コード例 #32
0
 public BrandController(IBrandService brandService, IQueryableRepository <Brand> queryableRepository, IQueryableRepository <vwRP_StockCount> totalRowsRepository)
 {
     _brandService        = brandService;
     _queryableRepository = queryableRepository;
     _totalRowsRepository = totalRowsRepository;
 }
コード例 #33
0
 public BaseDataController(IGenderService GenderService, ICategroyService CategoryService, IBrandService BrandService)
 {
     genderService = GenderService;
     categoryService = CategoryService;
     brandService = BrandService;
 }
コード例 #34
0
 public BrandsController(IBrandService brandService, ICarService carService)
 {
     _brandService = brandService;
     _carService   = carService;
 }
コード例 #35
0
 public FrmBrand()
 {
     _CommonService = new CommonService();
     _brandService = new BrandService();
     InitializeComponent();
 }
コード例 #36
0
 public ShopSearchController(IShopService iShopService, IBrandService iBrandService)
 {
     _iShopService  = iShopService;
     _iBrandService = iBrandService;
 }
コード例 #37
0
 public BrandController(IBrandService service)
 {
     this.service = service;
 }
コード例 #38
0
 public BrandController(IBrandService brandService, IGenericRepository <Brand> genericRepository)
 {
     _brandService      = brandService;
     _genericRepository = genericRepository;
 }