18 lines
490 B
C#
18 lines
490 B
C#
using ZeroFramework.DeviceCenter.Domain.Repositories;
|
|
|
|
namespace ZeroFramework.DeviceCenter.Domain.Aggregates.BuyerAggregate
|
|
{
|
|
//This is just the RepositoryContracts or Interface defined at the Domain Layer
|
|
//as requisite for the Buyer Aggregate
|
|
public interface IBuyerRepository : IRepository<Buyer>
|
|
{
|
|
Buyer Add(Buyer buyer);
|
|
|
|
Buyer Update(Buyer buyer);
|
|
|
|
Task<Buyer?> FindAsync(Guid userId);
|
|
|
|
Task<Buyer?> FindByIdAsync(Guid id);
|
|
}
|
|
}
|