categorie fix

This commit is contained in:
Tizian.Breuch
2025-08-29 09:37:06 +02:00
parent 4279e8186b
commit 6e6f38397b
6 changed files with 207 additions and 117 deletions

View File

@@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Application; // << HINZUF<55>GEN >>
using Webshop.Application.DTOs.Categorie;
namespace Webshop.Application.Services.Admin
@@ -10,8 +11,8 @@ namespace Webshop.Application.Services.Admin
{
Task<IEnumerable<CategorieDto>> GetAllAsync();
Task<CategorieDto?> GetByIdAsync(Guid id);
Task<(CategorieDto? Createdcategorie, string? ErrorMessage)> CreateAsync(CreatecategorieDto categorieDto);
Task<(bool Success, string? ErrorMessage)> UpdateAsync(Guid id, CreatecategorieDto categorieDto);
Task<bool> DeleteAsync(Guid id);
Task<ServiceResult<CategorieDto>> CreateAsync(CreatecategorieDto categorieDto);
Task<ServiceResult> UpdateAsync(UpdatecategorieDto categorieDto); // << DTO-TYP GE<47>NDERT >>
Task<ServiceResult> DeleteAsync(Guid id);
}
}