} // Liste des familles d'articles qui dont tous les articles ont du stock public InventaireController(ApplicationDbContext context , UserManager <IdentityUser> user_manager , IInventaireService service_inventaire , IInventaireLigneService service_inventaire_ligne , IStockService service_stock , IArticleFamilleService service_article_famille) { _context = context; _user_manager = user_manager; _service_inventaire = service_inventaire; _service_inventaire_ligne = service_inventaire_ligne; _service_stock = service_stock; _service_article_famille = service_article_famille; }
public InventaireService(IInventaireRepository repository, IInventaireLigneService service_ligne, IStockService service_stock) { _service_ligne = service_ligne; _service_stock = service_stock; _repository = repository ?? throw new ArgumentNullException(nameof(IInventaireRepository)); }