17 lines
353 B
C#
17 lines
353 B
C#
using Customers.Api.Contracts.Data;
|
|
|
|
namespace Customers.Api.Repositories;
|
|
|
|
public interface ICustomerRepository
|
|
{
|
|
Task<bool> CreateAsync(CustomerDto customer);
|
|
|
|
Task<CustomerDto?> GetAsync(Guid id);
|
|
|
|
Task<IEnumerable<CustomerDto>> GetAllAsync();
|
|
|
|
Task<bool> UpdateAsync(CustomerDto customer);
|
|
|
|
Task<bool> DeleteAsync(Guid id);
|
|
}
|