add supplier repo and suppliercreationdto
This commit is contained in:
@@ -10,7 +10,7 @@ namespace AB.Domain.Repositories;
|
||||
public interface ICustomerRepository
|
||||
{
|
||||
public Task<IEnumerable<Customer>> GetAllAsync(CancellationToken cancellationToken);
|
||||
Task<Customer> GetByIdAsync(Guid customerId, CancellationToken cancellationToken);
|
||||
void Insert(Customer customer);
|
||||
void Remove(Customer customer);
|
||||
public Task<Customer> GetByIdAsync(Guid customerId, CancellationToken cancellationToken);
|
||||
public void Insert(Customer customer);
|
||||
public void Remove(Customer customer);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AB.Domain.Entities;
|
||||
|
||||
namespace AB.Domain.Repositories;
|
||||
|
||||
public class ISupplierRepository
|
||||
public interface ISupplierRepository
|
||||
{
|
||||
public Task<IEnumerable<Supplier>> GetAllAsync(CancellationToken cancellationToken);
|
||||
public Task<Supplier> GetByIdAsync(Guid supplierId, CancellationToken cancellationToken);
|
||||
public void Insert(Supplier supplier);
|
||||
public void Remove(Supplier supplier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user