Exemplo n.º 1
0
 public StockController(ISupermarketRepository supermarketRepository,
                        IStockPropertyMappingService stockMappingService, ITypeHelperService typeHelperService, IUrlHelper urlHelper)
 {
     _supermarketRepository = supermarketRepository;
     _stockMappingService   = stockMappingService;
     _typeHelperService     = typeHelperService;
     _urlHelper             = urlHelper;
 }
 public SupermarketRepository(SupermarketContext context, IPropertyMappingService propertyMappingService,
                              IProductPropertyMappingService productPropertyMappingService, IStaffMemberPropertyMappingService staffMemberPropertyMappingService,
                              IStockPropertyMappingService stockPropertyMappingService)
 {
     _context = context;
     _propertyMappingService            = propertyMappingService;
     _productPropertyMappingService     = productPropertyMappingService;
     _staffMemberPropertyMappingService = staffMemberPropertyMappingService;
     _stockPropertyMappingService       = stockPropertyMappingService;
 }