adminproduct

This commit is contained in:
Tizian.Breuch
2025-09-25 14:22:29 +02:00
parent 39bd2fb5b3
commit 3447469851
3 changed files with 156 additions and 103 deletions

View File

@@ -2,16 +2,17 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Application;
using Webshop.Application.DTOs.Products;
namespace Webshop.Application.Services.Admin.Interfaces
{
public interface IAdminProductService
{
Task<IEnumerable<AdminProductDto>> GetAllAdminProductsAsync();
Task<AdminProductDto?> GetAdminProductByIdAsync(Guid id);
Task<AdminProductDto?> CreateAdminProductAsync(CreateAdminProductDto productDto); // << DTO-TYP GEÄNDERT >>
Task<bool> UpdateAdminProductAsync(UpdateAdminProductDto productDto); // << DTO-TYP GEÄNDERT >>
Task<bool> DeleteAdminProductAsync(Guid id);
Task<ServiceResult<IEnumerable<AdminProductDto>>> GetAllAdminProductsAsync();
Task<ServiceResult<AdminProductDto>> GetAdminProductByIdAsync(Guid id);
Task<ServiceResult<AdminProductDto>> CreateAdminProductAsync(CreateAdminProductDto productDto);
Task<ServiceResult> UpdateAdminProductAsync(UpdateAdminProductDto productDto);
Task<ServiceResult> DeleteAdminProductAsync(Guid id);
}
}