zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Aggregates/BuyerAggregate/IBuyerRepository.cs

18 lines
490 B
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
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);
}
}