Files
Examples/GerstITS.Examples.Logic/Customers/Contracts/ICustomerProvider.cs
T

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