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

18 lines
548 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(TestWidgetUserEmail):
return new TestWidgetUserEmail();
default:
throw new System.ArgumentOutOfRangeException($"DataListFactory: Unknown list \"{ListKey}\"");
}
}
}
}