Added events.Service and xmlhelper.service

This commit is contained in:
perploug
2013-08-12 15:06:12 +02:00
committed by Per Ploug Krogslund
parent 3e3f12bf63
commit e825c08901
982 changed files with 162678 additions and 162678 deletions

View File

@@ -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();
}
}
}