add supplier repo and suppliercreationdto

This commit is contained in:
2023-06-09 13:04:59 +02:00
parent 7b1aaacfb5
commit f5c030df01
14 changed files with 207 additions and 35 deletions

View File

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

View File

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