adminaddre
This commit is contained in:
@@ -2,16 +2,17 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application;
|
||||
using Webshop.Application.DTOs.Customers;
|
||||
using Webshop.Application.DTOs.Customers; // Wir können die DTOs wiederverwenden
|
||||
|
||||
namespace Webshop.Application.Services.Admin.Interfaces
|
||||
{
|
||||
public interface IAdminAddressService
|
||||
{
|
||||
Task<ServiceResult<IEnumerable<AddressDto>>> GetAllAddressesAsync();
|
||||
// Ruft ALLE Adressen ab, die NICHT an einen Kunden gebunden sind
|
||||
Task<ServiceResult<IEnumerable<AddressDto>>> GetAllUnlinkedAddressesAsync();
|
||||
Task<ServiceResult<AddressDto>> GetAddressByIdAsync(Guid addressId);
|
||||
// Admins erstellen Adressen typischerweise im Kontext eines Kunden
|
||||
Task<ServiceResult<AddressDto>> CreateAddressForCustomerAsync(CreateAddressDto addressDto, Guid customerId);
|
||||
// Erstellt eine neue, "herrenlose" Adresse
|
||||
Task<ServiceResult<AddressDto>> CreateAddressAsync(CreateAddressDto addressDto);
|
||||
Task<ServiceResult> UpdateAddressAsync(UpdateAddressDto addressDto);
|
||||
Task<ServiceResult> DeleteAddressAsync(Guid addressId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user