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