View Source
Inheritance
System.Object
Assembly: Umbraco.Cms.Api.Management.dll
public class ByKeyMediaCollectionController : MediaCollectionControllerBase
Constructors
View Source
Declaration
public ByKeyMediaCollectionController(IMediaListViewService mediaListViewService, IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IUmbracoMapper mapper)
Parameters
Type |
Name |
Description |
IMediaListViewService |
mediaListViewService |
|
IBackOfficeSecurityAccessor |
backOfficeSecurityAccessor |
|
IUmbracoMapper |
mapper |
|
View Source
Declaration
public ByKeyMediaCollectionController(IMediaListViewService mediaListViewService, IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IUmbracoMapper mapper, IMediaCollectionPresentationFactory mediaCollectionPresentationFactory)
Parameters
Type |
Name |
Description |
IMediaListViewService |
mediaListViewService |
|
IBackOfficeSecurityAccessor |
backOfficeSecurityAccessor |
|
IUmbracoMapper |
mapper |
|
IMediaCollectionPresentationFactory |
mediaCollectionPresentationFactory |
|
Methods
View Source
Declaration
public async Task<IActionResult> ByKey(CancellationToken cancellationToken, Guid? id, Guid? dataTypeId = null, string orderBy = "updateDate", Direction orderDirection = null, string filter = null, int skip = 0, int take = 100)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
System.Nullable<Guid> |
id |
|
System.Nullable<Guid> |
dataTypeId |
|
System.String |
orderBy |
|
Direction |
orderDirection |
|
System.String |
filter |
|
System.Int32 |
skip |
|
System.Int32 |
take |
|
Returns
Type |
Description |
Task<IActionResult> |
|