18 lines
752 B
C#
18 lines
752 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Application;
|
|
using Webshop.Application.DTOs.Customers;
|
|
|
|
namespace Webshop.Application.Services.Admin.Interfaces
|
|
{
|
|
public interface IAdminAddressService
|
|
{
|
|
Task<ServiceResult<IEnumerable<AddressDto>>> GetAllAddressesAsync();
|
|
Task<ServiceResult<AddressDto>> GetAddressByIdAsync(Guid addressId);
|
|
// Admins erstellen Adressen typischerweise im Kontext eines Kunden
|
|
Task<ServiceResult<AddressDto>> CreateAddressForCustomerAsync(CreateAddressDto addressDto, Guid customerId);
|
|
Task<ServiceResult> UpdateAddressAsync(UpdateAddressDto addressDto);
|
|
Task<ServiceResult> DeleteAddressAsync(Guid addressId);
|
|
}
|
|
} |