Update to latest packages and show examples
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using GerstITS.Examples.Logic.Shared.Search.Sorting;
|
||||
|
||||
namespace GerstITS.Examples.Logic.Customers;
|
||||
|
||||
public class Customer : ISortable
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public int Id { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string EMail { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace GerstITS.Examples.Logic.Customers;
|
||||
|
||||
public class CustomerNote
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Text { get; set; }
|
||||
public DateTime ValidFrom { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using GerstITS.Search;
|
||||
|
||||
namespace GerstITS.Examples.Logic.Customers;
|
||||
|
||||
public class CustomerSearchFilter : SearchFilterBase
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public string Name { get; set; }
|
||||
public string EMail { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user