Files
mixtape/zero.Backoffice/Modules/Search/SearchOptions.cs
T
2021-11-22 16:03:02 +01:00

13 lines
327 B
C#

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;
}
}