Пример #1
0
 public SearchBarController(
     IBlogSearchService searchService,
     IModelFactory <BlogPostSetViewModel, IEnumerable <SearchBlogPostResultDTO> > modelFactory,
     ILogger <SearchBarController> logger)
 {
     this.searchService = searchService;
     this.modelFactory  = modelFactory;
     this.logger        = logger;
 }
Пример #2
0
 public BlogController(IBlogSearchService blogSearchService) => this.blogSearchService = blogSearchService ?? throw new ArgumentException(nameof(blogSearchService));
Пример #3
0
 public BlogsController(IBlogService blogService, IBlogSearchService blogSearchService, INotificationSender notificationSender)
 {
     _blogService        = blogService;
     _blogSearchService  = blogSearchService;
     _notificationSender = notificationSender;
 }