The application has enum, which is part of the model and its extension is impossible. (Type created solely for example)
public enum Cars : int { Nissan = 1, Kia, Toyota, BMW }
In View there is a dropDown. In addition to the existing values, it is necessary that the dropDown also contain at least the "All" and "None" records, but others are possible. This is necessary for filtering. You need to understand that the value selected in dropDown-e will be sent back to the server, and will be compared with the property of type enum Cars
for existing domain objects. What is the best way to do this?
All
is selected? Tell me more about what kind of logic you are coding. - VladDAll
value comes to it? Is he ready for this turn of events? - VladD