Files
mixtape/zero.Backoffice/Modules/Search/SearchOptions.cs
T

13 lines
327 B
C#
Raw Normal View History

2021-11-22 14:29:22 +01:00
namespace zero.Backoffice.Modules;
public class SearchOptions : OptionsEnumerable<SearchIndexMap>, IOptionsEnumerable
{
public bool Enabled { get; set; }
public SearchIndexMap<T> Map<T>(string icon = null) where T : ZeroEntity, new()
{
SearchIndexMap<T> map = new(icon);
Items.Add(map);
return map;
}
}