@Html.DisplayFor(modelItem => item.CategoryType == "1" ? "Photo Category" : "Video Category");
instead of above, we can write code like below :
@{
string CategoryType = item.CategoryType == "1" ? "Photo Category" : "Video Category";
}
@Html.DisplayFor(modelItem => CategoryType)