コード例 #1
0
ファイル: CodeMapController.cs プロジェクト: yinzhenhua/CPM
 public CodeMapController(IAddService4CodeMap codeMapService,
                          IUnitOfWork <DataContext> unitOfWork,
                          IGetCategories getCategoryService,
                          IGetCodeDetailService getCodeDetailService)
 {
     _codeMapService       = codeMapService;
     _getCategoryService   = getCategoryService;
     _getCodeDetailService = getCodeDetailService;
     _context = unitOfWork;
 }
コード例 #2
0
 public CodeMapController(IGetCategories getCategoriesService,
                          IAddService4CodeMap addCategoryService,
                          IUnitOfWork <DataContext> context,
                          IGetCodeMapService getCodeMapService,
                          IUpdateCodeStatusService updateCodeStatusService)
 {
     _getCategoriesService    = getCategoriesService;
     _addCategoryService      = addCategoryService;
     _getCodeMapService       = getCodeMapService;
     _updateCodeStatusService = updateCodeStatusService;
     _context = context;
 }
コード例 #3
0
 public CategoriesController(
     IGetCategories getCategories,
     IGetCategoriesByPayee getCategoriesByPayee,
     IGetCategoryByName getCategoryByName,
     IUpsertCategory upsertCategory,
     IDeleteCategory deleteCategory,
     IGetPayeeByName getPayeeByName,
     Func <Try <Email>, string, CreateCategoryModel, Task <ValidationResult> > validate)
 {
     this.getCategories        = getCategories;
     this.getCategoriesByPayee = getCategoriesByPayee;
     this.getCategoryByName    = getCategoryByName;
     this.upsertCategory       = upsertCategory;
     this.deleteCategory       = deleteCategory;
     this.getPayeeByName       = getPayeeByName;
     this.validate             = validate;
 }
コード例 #4
0
 public ChuckController(IGetRandomJoke getRandomJoke, IGetCategories getCategories)
 {
     _getRandomJoke = getRandomJoke;
     _getCategories = getCategories;
 }
コード例 #5
0
 public IActionResult Get([FromQuery] CategorySearch search, [FromServices] IGetCategories query)
 {
     return(Ok(_executor.ExecuteQuery(query, search)));
 }