ModelFactoryGenerateCustomContent Method

Generates a new CustomPageDto based on the given parameters.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static CustomContentDto GenerateCustomContent(
	AccountDto createdBy,
	List<HtmlSectionDto>? htmlSections,
	IStringLocalizer loc
)

Parameters

createdBy  AccountDto
User creating the section
htmlSections  ListHtmlSectionDto
HTML sections to insert (if left empty, a basic page will be created)
loc  IStringLocalizer
Localization tool

Return Value

CustomContentDto
Generate custom content section

Exceptions

ArgumentNullException Thrown if createdBy or loc are left

See Also