예제 #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;
 }