Table of Contents

Class TourController

Namespace
Umbraco.Cms.Web.BackOffice.Controllers
Assembly
Umbraco.Web.BackOffice.dll
public class TourController : UmbracoAuthorizedJsonController
Inheritance
TourController
Inherited Members

Constructors

TourController(TourFilterCollection, IHostingEnvironment, IOptionsSnapshot<TourSettings>, IBackOfficeSecurityAccessor, IContentTypeService)

[Obsolete("Use other ctor - Will be removed in Umbraco 13")]
public TourController(TourFilterCollection filters, IHostingEnvironment hostingEnvironment, IOptionsSnapshot<TourSettings> tourSettings, IBackOfficeSecurityAccessor backofficeSecurityAccessor, IContentTypeService contentTypeService)

Parameters

filters TourFilterCollection
hostingEnvironment IHostingEnvironment
tourSettings IOptionsSnapshot<TourSettings>
backofficeSecurityAccessor IBackOfficeSecurityAccessor
contentTypeService IContentTypeService

TourController(TourFilterCollection, IHostingEnvironment, IOptionsSnapshot<TourSettings>, IBackOfficeSecurityAccessor, IContentTypeService, IWebHostEnvironment)

[ActivatorUtilitiesConstructor]
public TourController(TourFilterCollection filters, IHostingEnvironment hostingEnvironment, IOptionsSnapshot<TourSettings> tourSettings, IBackOfficeSecurityAccessor backofficeSecurityAccessor, IContentTypeService contentTypeService, IWebHostEnvironment webHostEnvironment)

Parameters

filters TourFilterCollection
hostingEnvironment IHostingEnvironment
tourSettings IOptionsSnapshot<TourSettings>
backofficeSecurityAccessor IBackOfficeSecurityAccessor
contentTypeService IContentTypeService
webHostEnvironment IWebHostEnvironment

Methods

GetTours()

public Task<IEnumerable<BackOfficeTourFile>> GetTours()

Returns

Task<IEnumerable<BackOfficeTourFile>>

GetToursForDoctype(string)

Gets a tours for a specific doctype.

public Task<IEnumerable<BackOfficeTour>> GetToursForDoctype(string doctypeAlias)

Parameters

doctypeAlias string

The documenttype alias

Returns

Task<IEnumerable<BackOfficeTour>>

A Umbraco.Cms.Core.Models.BackOfficeTour