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 |
---|---|---|
TourFilterCollection | filters | |
IHostingEnvironment | hostingEnvironment | |
Microsoft.Extensions.Options.IOptionsSnapshot<TourSettings> | tourSettings | |
IBackOfficeSecurityAccessor | backofficeSecurityAccessor | |
IContentTypeService | 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 |
---|---|---|
TourFilterCollection | filters | |
IHostingEnvironment | hostingEnvironment | |
Microsoft.Extensions.Options.IOptionsSnapshot<TourSettings> | tourSettings | |
IBackOfficeSecurityAccessor | backofficeSecurityAccessor | |
IContentTypeService | contentTypeService | |
Microsoft.AspNetCore.Hosting.IWebHostEnvironment | webHostEnvironment |
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>> | A |