Update to latest packages and show examples
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using GerstITS.Common;
|
||||
using GerstITS.System.Customizations;
|
||||
|
||||
namespace GerstITS.Examples.Logic.Customers.Customizations;
|
||||
|
||||
internal sealed class CustomerDisplayNameCustomization : CustomizationBase<Customer>
|
||||
{
|
||||
#region Methods
|
||||
|
||||
protected override bool CanCustomize(Customer item)
|
||||
{
|
||||
return item.IsNotNull();
|
||||
}
|
||||
|
||||
protected override Customer Customize(Customer item)
|
||||
{
|
||||
item.DisplayName = $"{item.LastName}, {item.FirstName}";
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user