adminpaymentmethods
This commit is contained in:
@@ -2,35 +2,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.DTOs.Payments; // Für AdminPaymentMethodDto
|
||||
using Webshop.Application;
|
||||
using Webshop.Application.DTOs.Payments;
|
||||
|
||||
namespace Webshop.Application.Services.Admin
|
||||
{
|
||||
public interface IAdminPaymentMethodService
|
||||
{
|
||||
/// <summary>
|
||||
/// Ruft alle Zahlungsmethoden ab (sowohl aktive als auch inaktive).
|
||||
/// </summary>
|
||||
Task<IEnumerable<AdminPaymentMethodDto>> GetAllAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Ruft eine einzelne Zahlungsmethode anhand ihrer ID ab.
|
||||
/// </summary>
|
||||
Task<AdminPaymentMethodDto?> GetByIdAsync(Guid id);
|
||||
|
||||
/// <summary>
|
||||
/// Erstellt eine neue Zahlungsmethode.
|
||||
/// </summary>
|
||||
Task<AdminPaymentMethodDto> CreateAsync(AdminPaymentMethodDto paymentMethodDto);
|
||||
|
||||
/// <summary>
|
||||
/// Aktualisiert eine bestehende Zahlungsmethode.
|
||||
/// </summary>
|
||||
Task<bool> UpdateAsync(AdminPaymentMethodDto paymentMethodDto);
|
||||
|
||||
/// <summary>
|
||||
/// Löscht eine Zahlungsmethode anhand ihrer ID.
|
||||
/// </summary>
|
||||
Task<bool> DeleteAsync(Guid id);
|
||||
Task<ServiceResult<IEnumerable<AdminPaymentMethodDto>>> GetAllAsync();
|
||||
Task<ServiceResult<AdminPaymentMethodDto>> GetByIdAsync(Guid id);
|
||||
Task<ServiceResult<AdminPaymentMethodDto>> CreateAsync(AdminPaymentMethodDto paymentMethodDto);
|
||||
Task<ServiceResult> UpdateAsync(AdminPaymentMethodDto paymentMethodDto);
|
||||
Task<ServiceResult> DeleteAsync(Guid id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user