From 628126895415c746271a0c95294f2f0584b6a5cd Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Wed, 29 May 2013 13:18:03 -0200 Subject: [PATCH] Updating sort method in Content- and MediaService --- src/Umbraco.Core/Services/ContentService.cs | 4 ++-- src/Umbraco.Core/Services/IContentService.cs | 4 ++-- src/Umbraco.Core/Services/IMediaService.cs | 4 ++-- src/Umbraco.Core/Services/MediaService.cs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Core/Services/ContentService.cs b/src/Umbraco.Core/Services/ContentService.cs index 0f041fe484..517479e893 100644 --- a/src/Umbraco.Core/Services/ContentService.cs +++ b/src/Umbraco.Core/Services/ContentService.cs @@ -1102,7 +1102,7 @@ namespace Umbraco.Core.Services /// /// Sorts a collection of objects by updating the SortOrder according - /// to the ordering of items in the passed in . + /// to the ordering of items in the passed in . /// /// /// Using this method will ensure that the Published-state is maintained upon sorting @@ -1112,7 +1112,7 @@ namespace Umbraco.Core.Services /// /// /// True if sorting succeeded, otherwise False - public bool Sort(SortedSet items, int userId = 0, bool raiseEvents = true) + public bool Sort(IEnumerable items, int userId = 0, bool raiseEvents = true) { if (raiseEvents) { diff --git a/src/Umbraco.Core/Services/IContentService.cs b/src/Umbraco.Core/Services/IContentService.cs index 1c25bddcc4..92878cd932 100644 --- a/src/Umbraco.Core/Services/IContentService.cs +++ b/src/Umbraco.Core/Services/IContentService.cs @@ -300,7 +300,7 @@ namespace Umbraco.Core.Services /// /// Sorts a collection of objects by updating the SortOrder according - /// to the ordering of items in the passed in . + /// to the ordering of items in the passed in . /// /// /// Using this method will ensure that the Published-state is maintained upon sorting @@ -310,7 +310,7 @@ namespace Umbraco.Core.Services /// /// /// True if sorting succeeded, otherwise False - bool Sort(SortedSet items, int userId = 0, bool raiseEvents = true); + bool Sort(IEnumerable items, int userId = 0, bool raiseEvents = true); /// /// Creates and saves an object using the alias of the diff --git a/src/Umbraco.Core/Services/IMediaService.cs b/src/Umbraco.Core/Services/IMediaService.cs index 84b886a9cd..c6397a2e11 100644 --- a/src/Umbraco.Core/Services/IMediaService.cs +++ b/src/Umbraco.Core/Services/IMediaService.cs @@ -197,13 +197,13 @@ namespace Umbraco.Core.Services /// /// Sorts a collection of objects by updating the SortOrder according - /// to the ordering of items in the passed in . + /// to the ordering of items in the passed in . /// /// /// /// /// True if sorting succeeded, otherwise False - bool Sort(SortedSet items, int userId = 0, bool raiseEvents = true); + bool Sort(IEnumerable items, int userId = 0, bool raiseEvents = true); /// /// Creates an object using the alias of the diff --git a/src/Umbraco.Core/Services/MediaService.cs b/src/Umbraco.Core/Services/MediaService.cs index 6bf14c1559..d66a427cb3 100644 --- a/src/Umbraco.Core/Services/MediaService.cs +++ b/src/Umbraco.Core/Services/MediaService.cs @@ -711,13 +711,13 @@ namespace Umbraco.Core.Services /// /// Sorts a collection of objects by updating the SortOrder according - /// to the ordering of items in the passed in . + /// to the ordering of items in the passed in . /// /// /// /// /// True if sorting succeeded, otherwise False - public bool Sort(SortedSet items, int userId = 0, bool raiseEvents = true) + public bool Sort(IEnumerable items, int userId = 0, bool raiseEvents = true) { if (raiseEvents) {