Class FormService
- Namespace
- Dynamicweb.Forms
- Assembly
- Dynamicweb.Forms.dll
public abstract class FormService
- Inheritance
-
FormService
- Inherited Members
Methods
Copy(Form)
Duplicates the form.
public virtual void Copy(Form form)
Parameters
form
FormThe form to duplicate.
Delete(Form)
Delete a form.
public virtual void Delete(Form form)
Parameters
form
FormThe form to delete.
Delete(int)
Delete a form.
public virtual void Delete(int formId)
Parameters
formId
intThe ID of the form to delete.
GetAll()
Get all forms.
public virtual IEnumerable<Form> GetAll()
Returns
GetById(int)
Get a form by ID.
public virtual Form? GetById(int formId)
Parameters
formId
intThe ID of the form.
Returns
IncrementDisplayCount(int)
Increases the display count for a given form.
public virtual void IncrementDisplayCount(int formId)
Parameters
formId
intThe ID of the form.
Save(Form)
Save the form.
public virtual void Save(Form form)
Parameters
form
FormThe form to save.