Files
mixtape/zero.Core/Options/FeatureOptions.cs
T

23 lines
454 B
C#
Raw Normal View History

2020-05-13 14:06:11 +02:00
using zero.Core.Entities;
namespace zero.Core.Options
{
2021-05-04 17:23:52 +02:00
public class FeatureOptions : ZeroBackofficeCollection<Feature>, IZeroCollectionOptions
2020-05-13 14:06:11 +02:00
{
2021-05-04 17:23:52 +02:00
public void Add<T>() where T : Feature, new()
2020-05-13 14:06:11 +02:00
{
Items.Add(new T());
}
public void Add(string alias, string name, string description)
{
Items.Add(new Feature()
{
Alias = alias,
Name = name,
Description = description
});
}
}
}