Files
raven/server/AyaNova/DataList/DataListFactory.cs
2020-01-21 16:47:26 +00:00

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}\"");
}
}
}
}