using System.Linq;
namespace Umbraco.Core.Services
{
public static class ContentServiceExtensions
{
///
/// Returns true if there is any content in the recycle bin
///
///
///
public static bool RecycleBinSmells(this IContentService contentService)
{
return contentService.GetContentInRecycleBin().Any();
}
///
/// Returns true if there is any media in the recycle bin
///
///
///
public static bool RecycleBinSmells(this IMediaService mediaService)
{
return mediaService.GetMediaInRecycleBin().Any();
}
}
}