Class TourController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Namespace: Umbraco.Cms.Web.BackOffice.Controllers
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[PluginController("UmbracoApi")]
public class TourController : UmbracoAuthorizedJsonController, IUmbracoFeature, IDiscoverable
Constructors
View SourceTourController(TourFilterCollection, IHostingEnvironment, IOptionsSnapshot<TourSettings>, IBackOfficeSecurityAccessor, IContentTypeService)
Declaration
public TourController(TourFilterCollection filters, IHostingEnvironment hostingEnvironment, IOptionsSnapshot<TourSettings> tourSettings, IBackOfficeSecurityAccessor backofficeSecurityAccessor, IContentTypeService contentTypeService)
Parameters
Type | Name | Description |
---|---|---|
TourFilterCollection | filters | |
IHostingEnvironment | hostingEnvironment | |
Microsoft.Extensions.Options.IOptionsSnapshot<TourSettings> | tourSettings | |
IBackOfficeSecurityAccessor | backofficeSecurityAccessor | |
IContentTypeService | contentTypeService |
Methods
View SourceGetTours()
Declaration
public async Task<IEnumerable<BackOfficeTourFile>> GetTours()
Returns
Type | Description |
---|---|
Task<IEnumerable<BackOfficeTourFile>> |
GetToursForDoctype(String)
Gets a tours for a specific doctype
Declaration
public async Task<IEnumerable<BackOfficeTour>> GetToursForDoctype(string doctypeAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | doctypeAlias | The documenttype alias |
Returns
Type | Description |
---|---|
Task<IEnumerable<BackOfficeTour>> |