Added events.Service and xmlhelper.service
This commit is contained in:
committed by
Per Ploug Krogslund
parent
3e3f12bf63
commit
e825c08901
@@ -1,27 +1,27 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace Umbraco.Core.Services
|
||||
{
|
||||
public static class ContentServiceExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns true if there is any content in the recycle bin
|
||||
/// </summary>
|
||||
/// <param name="contentService"></param>
|
||||
/// <returns></returns>
|
||||
public static bool RecycleBinSmells(this IContentService contentService)
|
||||
{
|
||||
return contentService.GetContentInRecycleBin().Any();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if there is any media in the recycle bin
|
||||
/// </summary>
|
||||
/// <param name="mediaService"></param>
|
||||
/// <returns></returns>
|
||||
public static bool RecycleBinSmells(this IMediaService mediaService)
|
||||
{
|
||||
return mediaService.GetMediaInRecycleBin().Any();
|
||||
}
|
||||
}
|
||||
using System.Linq;
|
||||
|
||||
namespace Umbraco.Core.Services
|
||||
{
|
||||
public static class ContentServiceExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns true if there is any content in the recycle bin
|
||||
/// </summary>
|
||||
/// <param name="contentService"></param>
|
||||
/// <returns></returns>
|
||||
public static bool RecycleBinSmells(this IContentService contentService)
|
||||
{
|
||||
return contentService.GetContentInRecycleBin().Any();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if there is any media in the recycle bin
|
||||
/// </summary>
|
||||
/// <param name="mediaService"></param>
|
||||
/// <returns></returns>
|
||||
public static bool RecycleBinSmells(this IMediaService mediaService)
|
||||
{
|
||||
return mediaService.GetMediaInRecycleBin().Any();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user