BlogEngine.Core.Json.JsonTrashList.IsTrashEmpty C# (CSharp) Method

IsTrashEmpty() public static method

If trash is empty.
public static IsTrashEmpty ( ) : bool
return bool
        public static bool IsTrashEmpty()
        {
            foreach (var p in Post.Posts)
            {
                if(p.DeletedComments.Count > 0) return false;
            }
            if (Post.DeletedPosts.Count > 0) return false;
            if (Page.DeletedPages.Count > 0) return false;
            return true;
        }