Table of Contents

Class FormTemplateService

Namespace
Dynamicweb.Forms
Assembly
Dynamicweb.Forms.dll

Represents the functionality for the FormTemplate.

public class FormTemplateService
Inheritance
FormTemplateService
Inherited Members

Methods

DeleteByAreaId(int)

Removes the templates by Area ID.

public void DeleteByAreaId(int areaId)

Parameters

areaId int

The Area ID.

DeleteTemplate(FormTemplate)

Removes the template.

public void DeleteTemplate(FormTemplate template)

Parameters

template FormTemplate

The FormTemplate for delete.

GetByAreaId(int)

Gets templates by area ID.

public IEnumerable<FormTemplate> GetByAreaId(int areaId)

Parameters

areaId int

The Area ID.

Returns

IEnumerable<FormTemplate>

A collection of FormTemplate.

GetByAreaIdAndType(int, TemplateType)

Gets template by type and area ID.

public FormTemplate GetByAreaIdAndType(int areaId, TemplateType type)

Parameters

areaId int

The Area ID.

type TemplateType

The TemplateType.

Returns

FormTemplate

GetTemplates()

Gets all templates.

public IEnumerable<FormTemplate> GetTemplates()

Returns

IEnumerable<FormTemplate>

A collection of FormTemplate.

Save(FormTemplate)

Saves the template.

public void Save(FormTemplate template)

Parameters

template FormTemplate

The FormTemplate for save.

To top