working customer post, get and delete

This commit is contained in:
Semikolon committed 2023-06-07 14:47:00 +02:00
1 parent ad998e0499
commit c805ce20a8
26 files changed
+447 -141

No files matched your search

+7 -8
View File
@@ -5,13 +5,12 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Services.Abstractions
namespace AB.Services.Abstractions;
public interface ICustomerService
{
public interface ICustomerService
{
Task<CustomerDto> CreateAsync(CustomerForCreationDto customerForCreation);
Task DeleteAsync(Guid customerId, CancellationToken cancellationToken);
Task<IEnumerable<CustomerDto>> GetAllAsync(CancellationToken cancellationToken);
Task<CustomerDto> GetByIdAsync(Guid customerId, CancellationToken cancellationToken);
}
Task<CustomerDto> CreateAsync(CustomerForCreationDto customerForCreation, CancellationToken cancellationToken = default);
Task DeleteAsync(Guid customerId, CancellationToken cancellationToken);
Task<IEnumerable<CustomerDto>> GetAllAsync(CancellationToken cancellationToken);
Task<CustomerDto> GetByIdAsync(Guid customerId, CancellationToken cancellationToken);
}
@@ -0,0 +1,11 @@
using AB.Contracts;
namespace AB.Services.Abstractions;
public interface ISupplierService
{
Task<SupplierDto> CreateAsync(SupplierForCreationDto supplierForCreation);
Task DeleteAsync(Guid supplierId, CancellationToken cancellationToken);
Task<IEnumerable<SupplierDto>> GetAllAsync(CancellationToken cancellationToken);
Task<SupplierDto> GetSupplierByIdAsync(Guid supplierId, CancellationToken cancellationToken);
}