18 lines
646 B
C#
18 lines
646 B
C#
// src/Webshop.Domain/Interfaces/ICustomerRepository.cs
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Domain.Entities;
|
|
|
|
namespace Webshop.Domain.Interfaces
|
|
{
|
|
public interface ICustomerRepository
|
|
{
|
|
Task<IEnumerable<Customer>> GetAllAsync(); // Standard CRUD
|
|
Task<Customer?> GetByIdAsync(Guid id); // Standard CRUD
|
|
Task AddAsync(Customer entity); // Standard CRUD
|
|
Task UpdateAsync(Customer entity); // Standard CRUD
|
|
Task DeleteAsync(Guid id); // Standard CRUD
|
|
|
|
Task<Customer?> GetByUserIdAsync(string userId); // << DIESE METHODE IST NEU UND WICHTIG >>
|
|
}
|
|
} |