@model Vehicle

@switch(Model.Status)
{
    case Vehicle.VehicleStatus.FMC:
        <span class="label label-success">FMC</span>
        return;

    case Vehicle.VehicleStatus.NMC:
        <span class="label label-danger">NMC</span>
        return;

    default:
        <span class="label label-warning">@Model</span>
        return;
}
@model Vehicle

@switch(Model.Status)
{
    case Vehicle.VehicleStatus.FMC:
        <span class="label label-success">FMC</span>
        return;

    case Vehicle.VehicleStatus.NMC:
        <span class="label label-danger">NMC</span>
                return;

    case Vehicle.VehicleStatus.Unknown:
        <span class="label label-warning">Unknown</span>
        return;
}
Fix for Unknown status display
Fix for Unknown status display
