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.CountChildren(Constants.System.RecycleBinContent) > 0;
}
///
/// Returns true if there is any media in the recycle bin
///
///
///
public static bool RecycleBinSmells(this IMediaService mediaService)
{
return mediaService.CountChildren(Constants.System.RecycleBinMedia) > 0;
}
}
}