if else condition in razor syntax code example
Example: if statement in razor using "?" and ":"
<option value="S" @(strAttributeFixType == "S" ? "selected" : "")>S</option>
<option value="S" @(strAttributeFixType == "S" ? "selected" : "")>S</option>