Тернар внутри html Razor
<!--use ternary inside razor-->
@count=0;
<input type="text" class="form-control" @(count == 0?"required":"") >
ekkamrit
<!--use ternary inside razor-->
@count=0;
<input type="text" class="form-control" @(count == 0?"required":"") >