View Source
Class TemplateController
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class TemplateController : BackOfficeNotificationsController, IDiscoverable
Constructors
View Source
TemplateController(IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, UmbracoHelper)
Declaration
public TemplateController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
Parameters
Methods
View Source
DeleteById(Int32)
Deletes a template with a given ID
Declaration
public HttpResponseMessage DeleteById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
HttpResponseMessage |
|
View Source
GetAll()
Declaration
public IEnumerable<EntityBasic> GetAll()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<EntityBasic> |
|
View Source
GetByAlias(String)
Declaration
public TemplateDisplay GetByAlias(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
View Source
GetById(Guid)
Gets the template json for the template guid
Declaration
public TemplateDisplay GetById(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
View Source
GetById(Int32)
Gets the template json for the template id
Declaration
public TemplateDisplay GetById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetById(Udi)
Gets the template json for the template udi
Declaration
public TemplateDisplay GetById(Udi id)
Parameters
Type |
Name |
Description |
Udi |
id |
|
Returns
View Source
GetScaffold(Int32)
Declaration
public TemplateDisplay GetScaffold(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
PostSave(TemplateDisplay)
Declaration
public TemplateDisplay PostSave(TemplateDisplay display)
Parameters
Returns