public OrdersService(IShopConnection shopConnection) { _dbContext = shopConnection.Context; }
protected BaseDbController(IShopConnection shopConnection) { ShopConnection = shopConnection; }
public CatalogService(IShopConnection dbContext) { _dbContext = dbContext.Context; }
public AdminsController(IShopConnection shopConnection) : base(shopConnection) { _dbContext = shopConnection.Context; }
public UsersController(IShopConnection connection) : base(connection) { _dbContext = connection.Context; }
public CatalogController(ICatalog catalog, IShopConnection connection) : base(connection) { _catalog = catalog; }
public OrdersController(IOrders orders, IShopConnection connection) : base(connection) { _orders = orders; }