public ModuleBusinessLogic( IMenuBusinessLogic menuBusinessLogic, ModuleValidator moduleValidator, DbContextOptions <ControlPanelContext> dbContextOptions) { _moduleValidator = moduleValidator ?? throw new ArgumentNullException(nameof(moduleValidator)); _dbContextOptions = dbContextOptions ?? throw new ArgumentNullException(nameof(dbContextOptions)); _menuBusinessLogic = menuBusinessLogic ?? throw new ArgumentNullException(nameof(menuBusinessLogic)); }
public MenuController(IMenuBusinessLogic menuBusinessLogic) { _menuBusinessLogic = menuBusinessLogic; }