Пример #1
0
 public ProductRepository(IHttpContextAccessor accessor,
                          ObMultiChoiceContext db, IMapper mapper) : base(accessor, db)
 {
     _db     = db;
     _mapper = mapper;
     _set    = _db.Products;
 }
Пример #2
0
 public InventoryRepository(IHttpContextAccessor accessor, ObMultiChoiceContext db, IMapper mapper) : base(
         accessor, db)
 {
     _db     = db;
     _set    = _db.Set <Inventory>();
     _mapper = mapper;
 }
 public InventoriesController(ObMultiChoiceContext context, IInventoryRepository repo, ILogger <InventoriesController> logger)
 {
     _context = context;
     _repo    = repo;
     _logger  = logger;
 }
Пример #4
0
 public GenericBaseRepository(IHttpContextAccessor accessor, ObMultiChoiceContext db)
 {
     _accessor = accessor;
     _db       = db;
 }
Пример #5
0
 public ProductsController(ObMultiChoiceContext context, IProductRepository repo)
 {
     _context = context;
     _repo    = repo;
 }
Пример #6
0
 public ShelfRepository(IHttpContextAccessor accessor, ObMultiChoiceContext db) : base(accessor, db)
 {
     _db = db;
 }
Пример #7
0
 public ShelvesController(ObMultiChoiceContext context, IShelfRepository repo)
 {
     _context = context;
     _repo    = repo;
 }