Adress und shipping
This commit is contained in:
17
Webshop.Domain/Interfaces/IAddressRepository.cs
Normal file
17
Webshop.Domain/Interfaces/IAddressRepository.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// src/Webshop.Domain/Interfaces/IAddressRepository.cs
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Domain.Entities;
|
||||
|
||||
namespace Webshop.Domain.Interfaces
|
||||
{
|
||||
public interface IAddressRepository
|
||||
{
|
||||
Task<IEnumerable<Address>> GetAllForCustomerAsync(Guid customerId);
|
||||
Task<Address?> GetByIdAsync(Guid id);
|
||||
Task AddAsync(Address address);
|
||||
Task UpdateAsync(Address address);
|
||||
Task DeleteAsync(Guid id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user