Files
ShopSolution-backend/Webshop.Application/Services/Admin/Interfaces/IAdminDiscountService.cs
2025-08-29 13:57:39 +02:00

18 lines
712 B
C#

// src/Webshop.Application/Services/Admin/Interfaces/IAdminDiscountService.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Application; // << NEU: Für ServiceResult >>
using Webshop.Application.DTOs.Discounts;
namespace Webshop.Application.Services.Admin.Interfaces
{
public interface IAdminDiscountService
{
Task<IEnumerable<DiscountDto>> GetAllDiscountsAsync();
Task<DiscountDto?> GetDiscountByIdAsync(Guid id);
Task<ServiceResult<DiscountDto>> CreateDiscountAsync(DiscountDto discountDto);
Task<ServiceResult> UpdateDiscountAsync(DiscountDto discountDto);
Task<ServiceResult> DeleteDiscountAsync(Guid id);
}
}