@Html.Label(Model.ParameterName)
@if (!string.IsNullOrWhiteSpace(Model.CommentDovomin))
{
}
@switch (Model.DisplayMethod)
{
case 1:
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" })
break;
case 2:
@Html.TextArea(paramId)
break;
case 3:
/* validator bezar baraye numeric gereftan */
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" })
break;
case 4:
@Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2"), Model.ParameterName, new { @class = "form-control" })
break;
default:
@MvcHtmlString.Empty
break;
}