I declared an enum:
public enum HeightTypes{ Tall, Short}
Now I want to use it on my razor page like this:
@if (Model.Met
You aren't specific about the exception, so I'm guessing this is a namespace issue. Add
@using The.Namespace.Of.Your.Enum;
at the top. You can also specify namespaces to add automatically in /Views/web.config if you are going to use that namespace a lot:
/Views/web.config
... ...