コード例 #1
0
 public ProductsController(ISupermarketRepository supermarketRepository,
                           IProductPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService, IUrlHelper urlHelper)
 {
     _supermarketRepository  = supermarketRepository;
     _propertyMappingService = propertyMappingService;
     _typeHelperService      = typeHelperService;
     _urlHelper = urlHelper;
 }
コード例 #2
0
 public SupermarketRepository(SupermarketContext context, IPropertyMappingService propertyMappingService,
                              IProductPropertyMappingService productPropertyMappingService, IStaffMemberPropertyMappingService staffMemberPropertyMappingService,
                              IStockPropertyMappingService stockPropertyMappingService)
 {
     _context = context;
     _propertyMappingService            = propertyMappingService;
     _productPropertyMappingService     = productPropertyMappingService;
     _staffMemberPropertyMappingService = staffMemberPropertyMappingService;
     _stockPropertyMappingService       = stockPropertyMappingService;
 }
コード例 #3
0
 public SupermarketController(ISupermarketRepository supermarketRepository,
                              IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService,
                              IProductPropertyMappingService productPropertyMappingService, IStaffMemberPropertyMappingService staffMemberPropertyMappingService)
 {
     _supermarketRepository             = supermarketRepository;
     _urlHelper                         = urlHelper;
     _propertyMappingService            = propertyMappingService;
     _typeHelperService                 = typeHelperService;
     _productPropertyMappingService     = productPropertyMappingService;
     _staffMemberPropertyMappingService = staffMemberPropertyMappingService;
 }