public CodeMapController(IAddService4CodeMap codeMapService, IUnitOfWork <DataContext> unitOfWork, IGetCategories getCategoryService, IGetCodeDetailService getCodeDetailService) { _codeMapService = codeMapService; _getCategoryService = getCategoryService; _getCodeDetailService = getCodeDetailService; _context = unitOfWork; }
public CodeMapController(IGetCategories getCategoriesService, IAddService4CodeMap addCategoryService, IUnitOfWork <DataContext> context, IGetCodeMapService getCodeMapService, IUpdateCodeStatusService updateCodeStatusService) { _getCategoriesService = getCategoriesService; _addCategoryService = addCategoryService; _getCodeMapService = getCodeMapService; _updateCodeStatusService = updateCodeStatusService; _context = context; }
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; }
public ChuckController(IGetRandomJoke getRandomJoke, IGetCategories getCategories) { _getRandomJoke = getRandomJoke; _getCategories = getCategories; }
public IActionResult Get([FromQuery] CategorySearch search, [FromServices] IGetCategories query) { return(Ok(_executor.ExecuteQuery(query, search))); }