18 lines
549 B
C#
18 lines
549 B
C#
// 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);
|
|
Task<IEnumerable<Address>> GetAllAsync();
|
|
}
|
|
} |