示例#1
0
 public ProductsController(IProductRepository productRepository, IMapper mapper,
                           ITypeHelper typeHelper,
                           IPropertyMappingService propertyMappingService,
                           IPagedListHelper pagedListHelper)
 {
     _productRepository      = productRepository;
     _mapper                 = mapper;
     _typeHelper             = typeHelper;
     _propertyMappingService = propertyMappingService;
     _pagedListHelper        = pagedListHelper;
 }
 public SearchController(ISearchService searchService,
                         IPagedListHelper pagedListHelper)
 {
     _searchService   = searchService ?? throw new ArgumentNullException(nameof(searchService));
     _pagedListHelper = pagedListHelper ?? throw new ArgumentNullException(nameof(pagedListHelper));
 }