public Prompts(IPromptRepository promptRepository, ICategoryRepository categoryRepository, ISearchService search, ICacheService cacheRepository) { _cacheRepository = cacheRepository ?? throw new ArgumentNullException(nameof(cacheRepository)); _categoryRepository = categoryRepository ?? throw new ArgumentNullException(nameof(categoryRepository)); _search = search ?? throw new ArgumentNullException(nameof(search)); _promptRepository = promptRepository ?? throw new ArgumentNullException(nameof(promptRepository)); }
public PromptService(IPromptRepository promptRepository, IMapper mapper) { _promptRepository = promptRepository; _mapper = mapper; }
public PromptController(IPromptRepository prompts) { Prompts = prompts; }