ModelFactoryGenerateTemplate Method

Generates a new TemplateDto for a company.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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