24 lines
596 B
C#
24 lines
596 B
C#
using GerstITS.Data;
|
|
using GerstITS.Search;
|
|
|
|
namespace GerstITS.Examples.Logic.Customers;
|
|
|
|
public interface ICustomerProvider
|
|
{
|
|
Customer GetById(int id);
|
|
Customer GetById(int id, bool includeInactive);
|
|
|
|
SearchResult<Customer> Search(CustomerSearchFilter filter);
|
|
|
|
Customer Create(Customer customer);
|
|
Customer Update(Customer customer);
|
|
|
|
bool Delete(int id);
|
|
bool Delete(int id, bool forceDelete);
|
|
|
|
BulkResult Import(IEnumerable<Customer> customers);
|
|
|
|
IEnumerable<CustomerNote> GetNotes(int customerId);
|
|
CustomerNote AddNote(int customerId, string text);
|
|
}
|