@Html.Label(Model.ParameterName)
@if (!string.IsNullOrWhiteSpace(Model.CommentDovomin))
{
}
@switch (Model.DisplayMethod)
{
case 1:
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control" })
break;
case 2:
@Html.TextArea(paramId, Model.StringValue, new { @class = "form-control" })
break;
case 3:
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control", data_val = "true", data_val_number = "لطفا در این فیلد فقط عدد وارد شود." })
@Html.ValidationMessage(paramId)
break;
case 4:
@Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2", Model.StringValue), "انتخاب کنید ...", new { @class = "form-control" })
break;
default:
@MvcHtmlString.Empty
break;
}