Fixes review notes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -12,6 +12,7 @@ using Umbraco.Core.Xml;
|
||||
using Umbraco.Web.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Umbraco.Web.Security;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Umbraco.Web
|
||||
{
|
||||
@@ -104,13 +105,10 @@ namespace Umbraco.Web
|
||||
/// <summary>
|
||||
/// Renders the template for the specified pageId and an optional altTemplateId
|
||||
/// </summary>
|
||||
/// <param name="contentId"></param>
|
||||
/// <param name="contentId">The content id</param>
|
||||
/// <param name="altTemplateId">If not specified, will use the template assigned to the node</param>
|
||||
/// <returns></returns>
|
||||
public IHtmlEncodedString RenderTemplate(int contentId, int? altTemplateId = null)
|
||||
{
|
||||
return _componentRenderer.RenderTemplate(contentId, altTemplateId);
|
||||
}
|
||||
public async Task<IHtmlEncodedString> RenderTemplateAsync(int contentId, int? altTemplateId = null)
|
||||
=> await _componentRenderer.RenderTemplateAsync(contentId, altTemplateId);
|
||||
|
||||
#region RenderMacro
|
||||
|
||||
|
||||
Reference in New Issue
Block a user