Пример #1
0
 public static IHtmlString LabelFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression)
 {
     return(Label(helper, ExpressionHelper.GetExpessionDisplayName(expression), ExpressionHelper.GetExpressionText(expression)));
 }
Пример #2
0
 public static IHtmlString LabelFor <TModel, TProperty>(this HtmlHelpers <TModel> helper, Expression <Func <TModel, TProperty> > expression, IDictionary <string, object> htmlAttributes)
 {
     return(Label(helper, ExpressionHelper.GetExpessionDisplayName(expression), ExpressionHelper.GetExpressionText(expression), TypeHelper.ObjectToDictionary(htmlAttributes)));
 }