mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
13 lines
348 B
C#
13 lines
348 B
C#
|
|
using Packt.Shared; // Customer
|
|||
|
|
|
|||
|
|
namespace Northwind.WebApi.Repositories;
|
|||
|
|
|
|||
|
|
public interface ICustomerRepository
|
|||
|
|
{
|
|||
|
|
Task<Customer?> CreateAsync(Customer c);
|
|||
|
|
Task<IEnumerable<Customer>> RetrieveAllAsync();
|
|||
|
|
Task<Customer?> RetrieveAsync(string id);
|
|||
|
|
Task<Customer?> UpdateAsync(string id, Customer c);
|
|||
|
|
Task<bool?> DeleteAsync(string id);
|
|||
|
|
}
|