28 lines
614 B
C#
28 lines
614 B
C#
using System.Collections.Generic;
|
|
using _0_Framework.Application;
|
|
using _0_Framework.Domain;
|
|
|
|
namespace Company.Domain.PaymentInstrumentAgg;
|
|
|
|
public class PaymentInstrumentGroup:EntityBase
|
|
{
|
|
public PaymentInstrumentGroup(string name)
|
|
{
|
|
Name = name;
|
|
IsActive = IsActive.True;
|
|
}
|
|
|
|
public string Name { get; private set; }
|
|
public IsActive IsActive { get; private set; }
|
|
public List<PaymentInstrument> PaymentInstruments { get; set; }
|
|
|
|
public void Edit(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public void DeActive()
|
|
{
|
|
IsActive = IsActive.False;
|
|
}
|
|
} |