I'm trying to use the .GetMediaInRecycleBin() method to get a list of all items in the recycle bin.
I've looked through here and here and can't find any way of doing this in Umbraco 8, the best I have so far is this and this feels like a really bad way of doing it?
var mediaService = Current.Services.MediaService;
long pageIndex = 0;
int pageSize = 2147483647; // max int32
var recycled = mediaService.GetPagedMediaInRecycleBin(pageIndex, pageSize, out long totalRecords);
It works, but I would really prefer to use the proper method if anyone can help me implement it that would be great! Thanks in advance!
Umbraco 8.1.5 .GetMediaInRecycleBin()
Hey!
I'm trying to use the
.GetMediaInRecycleBin()
method to get a list of all items in the recycle bin.I've looked through here and here and can't find any way of doing this in Umbraco 8, the best I have so far is this and this feels like a really bad way of doing it?
It works, but I would really prefer to use the proper method if anyone can help me implement it that would be great! Thanks in advance!
Any ideas anyone?
Cheers in advance!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.