Пример #1
0
 public UserController(IUserRepository repository,
                       IMapper mapper,
                       BlazorShopContext context)
 {
     _context    = context;
     _mapper     = mapper;
     _repository = repository;
 }
 public CategoryController(ICategoryRepository repository,
                           IMapper mapper,
                           BlazorShopContext context)
 {
     _context    = context;
     _mapper     = mapper;
     _repository = repository;
 }
 public OrderController(IMapper mapper,
                        IOrderRepository orderRepository,
                        IOrderProductRepository orderProductRepository,
                        BlazorShopContext context)
 {
     _mapper                 = mapper;
     _context                = context;
     _orderRepository        = orderRepository;
     _orderProductRepository = orderProductRepository;
 }
 public ProductController(IProductRepository repository,
                          ICategoryRepository categoryRepository,
                          IFileStorageService azureStorage,
                          IMapper mapper,
                          BlazorShopContext context)
 {
     _context            = context;
     _azureStorage       = azureStorage;
     _mapper             = mapper;
     _repository         = repository;
     _categoryRepository = categoryRepository;
 }
Пример #5
0
 public OrderRepository(BlazorShopContext context) : base(context)
 {
 }
Пример #6
0
 public AuthenticationService(BlazorShopContext context, IConfiguration configuration, IMapper mapper)
 {
     _context       = context;
     _configuration = configuration;
     _mapper        = mapper;
 }
 public ProductRepository(BlazorShopContext context) : base(context)
 {
 }
 public CategoryRepository(BlazorShopContext context) : base(context)
 {
 }