1
0
mirror of https://github.com/rudollee/LearningMVC.git synced 2025-06-07 16:06:21 +00:00
2017-04-18 01:52:16 +09:00

16 lines
228 B
Plaintext

@model bool?
@if (ViewData.ModelMetadata.IsNullableValueType && Model == null)
{
@:(True) (False) <b>(Not Set)</b>
}
else if (Model.Value)
{
@:<b>(True)</b> (False) (Not Set)
}
else
{
@:(True) <b>(False)</b> (Not Set)
}