public async Task <IHtmlContent> InvokeEdit(ContextualizedHelpers helpers, ModelExpression expression) { if (EditTemplate == null) { return(new HtmlString(string.Empty)); } return(await EditTemplate.Invoke(expression, this, helpers)); }
public async Task <IHtmlContent> InvokeEdit(object o, ContextualizedHelpers helpers, string overridePrefix = null) { if (EditTemplate == null) { return(new HtmlString(string.Empty)); } return(await EditTemplate.Invoke(new ModelExpression( combinePrefixes(AdditionalPrefix, For.Name), For.ModelExplorer.GetExplorerForModel(o)), this, helpers, overridePrefix)); }
public async Task <IHtmlContent> InvokeEdit(object o, string prefix, ContextualizedHelpers helpers) { if (EditTemplate == null) { return(new HtmlString(string.Empty)); } //await PrerenderInLineColumnTemplates(o, prefix, helpers); return(await EditTemplate.Invoke( new ModelExpression(prefix, For.ModelExplorer.GetExplorerForModel(o)), this, helpers)); }