public NewsController(INewsRepository repository, IEditorRepository editorRepository, IMapper mapper) { _repository = repository; _editorRepository = editorRepository; _mapper = mapper; }
/// <summary> /// Class constructor /// </summary> public EditorService(IEditorRepository repository) { _repository = repository; }
public EditorController(IEditorRepository editors) { _editors = editors; }
public EditorController(IEditorRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
/// <summary> /// Instantiates a new EditorController. /// </summary> /// <param name="editorRepo"></param> public EditorController(IEditorRepository editorRepo) { Repository = editorRepo; }
public ArticleController(IArticleRepository articles, IEditorRepository editors) { _articles = articles; _editors = editors; }
/// <summary> /// 富文本编辑服务 /// </summary> /// <param name="editorRepository"></param> /// <param name="concatRepositories"></param> public EditorService(IEditorRepository editorRepository, IConcatRepositories concatRepositories) { _editorRepository = editorRepository; _concatRepositories = concatRepositories; }