public static string IdFor <TModel, T>(this LoopItem <TModel, T> loopItem, Expression <Func <T, object> > expression) { return(TagGenerator.BuildRequestData(loopItem.Info.HtmlHelper.ViewContext, loopItem.Info.TranslateExpression(expression)).Id); }
public static string NameFor <TModel>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, object> > expression) { return(TagGenerator.BuildRequestData(htmlHelper.ViewContext, expression).Name); }