18 lines
564 B
C#
18 lines
564 B
C#
using System.Collections.Generic;
|
|
using AyaNova.Biz;
|
|
namespace AyaNova.DataList
|
|
{
|
|
internal static class DataListFactory
|
|
{
|
|
internal static IAyaDataList GetAyaDataList(string ListKey)
|
|
{
|
|
switch (ListKey)
|
|
{
|
|
case nameof(TestWidgetUserEmailDataList):
|
|
return new TestWidgetUserEmailDataList();
|
|
default:
|
|
throw new System.ArgumentOutOfRangeException($"DataListFactory: Unknown list \"{ListKey}\"");
|
|
}
|
|
}
|
|
}
|
|
} |