Class HtmlTemplateService
- Namespace
- JJMasterData.Core.DataManager.Services
- Assembly
- JJMasterData.Core.dll
public class HtmlTemplateService
- Inheritance
-
HtmlTemplateService
- Inherited Members
Constructors
HtmlTemplateService(IEntityRepository, IStringLocalizer<MasterDataResources>, ILogger<HtmlTemplateService>, FluidParser)
public HtmlTemplateService(IEntityRepository entityRepository, IStringLocalizer<MasterDataResources> stringLocalizer, ILogger<HtmlTemplateService> logger, FluidParser fluidParser)
Parameters
entityRepository
IEntityRepositorystringLocalizer
IStringLocalizer<MasterDataResources>logger
ILogger<HtmlTemplateService>fluidParser
FluidParser
Methods
RenderTemplate(HtmlTemplateAction, Guid?, Dictionary<string, object>)
public Task<HtmlBuilder> RenderTemplate(HtmlTemplateAction action, Guid? connectionId, Dictionary<string, object> pkValues)
Parameters
action
HtmlTemplateActionconnectionId
Guid?pkValues
Dictionary<string, object>
Returns
RenderTemplate(string, Dictionary<string, object>)
public ValueTask<string> RenderTemplate(string templateString, Dictionary<string, object> values)
Parameters
templateString
stringvalues
Dictionary<string, object>