24 lines
507 B
C#
24 lines
507 B
C#
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
|
|
}
|