zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Aggregates/BuyerAggregate/IBuyerRepository.cs
2023-12-05 17:22:48 +08:00

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);
}
}