ModelFactoryGenerateTemplate Method

Generates a new TemplateDto for a company.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static TemplateDto GenerateTemplate(
	AccountDto createdBy,
	TemplateType templateType,
	Guid companyId,
	IStringLocalizer loc
)

Parameters

createdBy  AccountDto
User creating the template
templateType  TemplateType
Type of template
companyId  Guid
Company ID. If left Empty, it is a global template.
loc  IStringLocalizer
Localization tool

Return Value

TemplateDto
Generated template

Exceptions

ArgumentExceptionThrown if templateType is
ArgumentNullException Thrown if createdBy or loc is loc

See Also