예제 #1
0
 public CategoriesController(IGetCategoriesCommand getCategoriesCommand, IGetCategoryCommand getCategoryCommand, IAddCategoryCommand addCategoryCommand, IEditCategoryCommand editCategoryCommand, IDeleteCategoryCommand deleteCategoryCommand)
 {
     this.getCategoriesCommand  = getCategoriesCommand;
     this.getCategoryCommand    = getCategoryCommand;
     this.addCategoryCommand    = addCategoryCommand;
     this.editCategoryCommand   = editCategoryCommand;
     this.deleteCategoryCommand = deleteCategoryCommand;
 }
예제 #2
0
 public CategoriesController(IGetCategoriesCommand getCommand, IGetCategoryCommand getOneCommand, IAddCategoryCommand addCommand, IUpdateCategoryCommand editCommand, IDeleteCategoryCommand deleteCommand)
 {
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _addCommand    = addCommand;
     _editCommand   = editCommand;
     _deleteCommand = deleteCommand;
 }
예제 #3
0
 public KategorijaController(IGetCategoriesCommand getCategoriesCommand, IGetCategoryCommand getCategoryCommand, IAddCategoryCommand addCategoryCommand, IEditCategoryCommand editCategoryCommand, IDeleteCategoryCommand deleteCategoryCommand)
 {
     _getCategoriesCommand  = getCategoriesCommand;
     _getCategoryCommand    = getCategoryCommand;
     _addCategoryCommand    = addCategoryCommand;
     _editCategoryCommand   = editCategoryCommand;
     _deleteCategoryCommand = deleteCategoryCommand;
 }
예제 #4
0
 public CategoryController(IGetCategory getCategory, IEditCategoryCommand editCategory, IDeleteCategoryCommand deleteCategory, IGetOneCategory oneCategory, IAddCategoryCommand addCategory)
 {
     _getCategory    = getCategory;
     _editCategory   = editCategory;
     _deleteCategory = deleteCategory;
     _oneCategory    = oneCategory;
     _addCategory    = addCategory;
 }
 public CategoriesController(IAddCategoryCommand addCommand, IGetCategoriesCommand getCommands, IGetCategoryCommand getCommand, IDeleteCategoryCommand deleteCommand, IUpdateCategoryCommand updateCommand)
 {
     _addCommand    = addCommand;
     _getCommands   = getCommands;
     _getCommand    = getCommand;
     _deleteCommand = deleteCommand;
     _updateCommand = updateCommand;
 }
예제 #6
0
 public CategoriesController(IDeleteCategoryCommand deleteCategoryCommand, IGetCategoryCommand getCategoryCommand, IGetCategoriesCommand getCategoriesCommand, IInsertCategoryCommand insertCategoryCommand, IUpdateCategoryCommand updateCategoryCommand)
 {
     this.deleteCategoryCommand = deleteCategoryCommand;
     this.getCategoryCommand    = getCategoryCommand;
     this.getCategoriesCommand  = getCategoriesCommand;
     this.insertCategoryCommand = insertCategoryCommand;
     this.updateCategoryCommand = updateCategoryCommand;
 }
예제 #7
0
 public CategoriesController(IGetCategoriesCommand searchCategoriesCommand, IGetCategoryCommand getOneCategoryCommand, ICreateCategoryCommand createCategoryCommand, IEditCategoryCommand editCategoryCommand, IDeleteCategoryCommand deleteCategoryCommand)
 {
     _searchCategoriesCommand = searchCategoriesCommand;
     _getOneCategoryCommand   = getOneCategoryCommand;
     _createCategoryCommand   = createCategoryCommand;
     _editCategoryCommand     = editCategoryCommand;
     _deleteCategoryCommand   = deleteCategoryCommand;
 }
예제 #8
0
 public CategoryController(IGetCateroryApi command, IGetOneCategory oneCategory, IAddCategoryCommand addCategory, IEditCategoryCommand editCategory, IDeleteCategoryCommand deleteCategory, LoggedUser loggedUser)
 {
     _command        = command;
     _oneCategory    = oneCategory;
     _addCategory    = addCategory;
     _editCategory   = editCategory;
     _deleteCategory = deleteCategory;
     _loggedUser     = loggedUser;
 }
 public CategoriesController(Context context, IGetCategoriesCommand getCommand, IGetCategoryCommand getOneCommand, IAddCategoryCommand addCommand, IEditCategoryCommand editCommand, IDeleteCategoryCommand deleteCommand)
 {
     _context       = context;
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _addCommand    = addCommand;
     _editCommand   = editCommand;
     _deleteCommand = deleteCommand;
 }
 public CategoriesController(IGetCategoriesCommand getCommand, IGetCategoryCommand getOneCommand, IAddCategoryCommand addCommand, IEditCategoryCommand editCommand, IDeleteCategoryCommand deleteCommand, LoggedUser user)
 {
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _addCommand    = addCommand;
     _editCommand   = editCommand;
     _deleteCommand = deleteCommand;
     _user          = user;
 }
예제 #11
0
 public CategoryController(
     IGetListCategoryQuery getListCategoryQuery,
     IGetEnableCategoryQuery getEnableCategoryQuery,
     ISaveCategoryCommand saveCategoryCommand,
     IDeleteCategoryCommand deleteCategoryCommand)
 {
     _getEnableCategoryQuery = getEnableCategoryQuery;
     _getListCategoryQuery   = getListCategoryQuery;
     _saveCategoryCommand    = saveCategoryCommand;
     _deleteCategoryCommand  = deleteCategoryCommand;
 }
예제 #12
0
 public CategoriesController(IAddCategoryCommand addCategory,
                             IGetCategoriesCommand getCategories,
                             IGetCategoryCommand getCategory,
                             IEditCategoryCommand editCategory,
                             IDeleteCategoryCommand deleteCategory)
 {
     _addCategory    = addCategory;
     _getCategories  = getCategories;
     _getCategory    = getCategory;
     _editCategory   = editCategory;
     _deleteCategory = deleteCategory;
 }
예제 #13
0
 public AdminCommandApplicationService(IUpsertPartnerCommand upsertPartnerCommand,
                                       IUpsertBranchCommand upsertBranchCommand, IUpsertCategoryCommand upsertCategoryCommand,
                                       IDeleteBranchCommand deleteBranchCommand, IDeletePartnerCommand deletePartnerCommand,
                                       IDeleteCategoryCommand deleteCategoryCommand, IUpdateModificationHashQuery updateModificationHashQuery)
 {
     _upsertPartnerCommand        = upsertPartnerCommand;
     _upsertBranchCommand         = upsertBranchCommand;
     _upsertCategoryCommand       = upsertCategoryCommand;
     _deleteBranchCommand         = deleteBranchCommand;
     _deletePartnerCommand        = deletePartnerCommand;
     _deleteCategoryCommand       = deleteCategoryCommand;
     _updateModificationHashQuery = updateModificationHashQuery;
 }
예제 #14
0
 public void Delete(int id, [FromServices] IDeleteCategoryCommand command)
 {
     executor.ExecuteCommand(command, id);
 }
 public IActionResult Delete(int id, [FromServices] IDeleteCategoryCommand command)
 {
     executor.ExecuteCommand(command, id);
     return(StatusCode(StatusCodes.Status204NoContent));
 }
예제 #16
0
 public IActionResult Delete(int id, [FromServices] IDeleteCategoryCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(NoContent());
 }
 public CategoryApplicationService(ICategoryListQuery categoryListQuery, IUpsertCategoryCommand upsertCategoryCommand, IDeleteCategoryCommand deleteCategoryCommand)
 {
     _categoryListQuery     = categoryListQuery;
     _upsertCategoryCommand = upsertCategoryCommand;
     _deleteCategoryCommand = deleteCategoryCommand;
 }