Files
mixtape/zero.Backoffice/Modules/Search/SearchOptions.cs
T
2021-11-27 16:33:05 +01:00

13 lines
295 B
C#

namespace zero.Backoffice.Modules.Search;
public class SearchOptions : List<SearchIndexMap>
{
public bool Enabled { get; set; }
public SearchIndexMap<T> Map<T>(string icon = null) where T : ZeroEntity, new()
{
SearchIndexMap<T> map = new(icon);
Add(map);
return map;
}
}