예제 #1
0
 public async Task <IHtmlContent> InvokeEdit(ContextualizedHelpers helpers, ModelExpression expression)
 {
     if (EditTemplate == null)
     {
         return(new HtmlString(string.Empty));
     }
     return(await EditTemplate.Invoke(expression, this, helpers));
 }
예제 #2
0
 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));
 }
예제 #3
0
 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));
 }