6
I have a dropdown in my view that I fill in the following way:
ViewBag.NfeStatus = EnumHelper
.ListAll<NfeStatus>()
.ToSelectList(x => x, x => x.Description());
My model Nfestatus is an Enum:
public enum NfeStatus
{
[Description("-")]
NotIssued = 0,
[Description("Pendente")]
Pending,
[Description("Erro")]
Error,
[Description("Ok")]
Ok
}
But I would like to not display the "OK".
How I do this friltro?