Add invoice repository contract
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace Distribution.Features.Invoice;
|
||||
|
||||
public interface IInvoiceRepository
|
||||
{
|
||||
Task<Models.Invoice?> GetByIdAsync(Guid id);
|
||||
Task<Models.Invoice?> GetByOrderIdAsync(Guid orderId);
|
||||
Task AddAsync(Models.Invoice entity);
|
||||
void Update(Models.Invoice entity);
|
||||
}
|
||||
Reference in New Issue
Block a user