diff --git a/src/Umbraco.Core/Services/ITagService.cs b/src/Umbraco.Core/Services/ITagService.cs index 34300e9f05..02ac6f79ff 100644 --- a/src/Umbraco.Core/Services/ITagService.cs +++ b/src/Umbraco.Core/Services/ITagService.cs @@ -68,36 +68,36 @@ namespace Umbraco.Core.Services /// /// Gets every tag stored in the database /// - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - IEnumerable GetAllTags(string group = null); + IEnumerable GetAllTags(string tagGroup = null); /// /// Gets all tags for content items /// - /// Use the optional group parameter to limit the + /// Use the optional tagGroup parameter to limit the /// result to a specific 'Tag Group'. - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - IEnumerable GetAllContentTags(string group = null); + IEnumerable GetAllContentTags(string tagGroup = null); /// /// Gets all tags for media items /// - /// Use the optional group parameter to limit the + /// Use the optional tagGroup parameter to limit the /// result to a specific 'Tag Group'. - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - IEnumerable GetAllMediaTags(string group = null); + IEnumerable GetAllMediaTags(string tagGroup = null); /// /// Gets all tags for member items /// - /// Use the optional group parameter to limit the + /// Use the optional tagGroup parameter to limit the /// result to a specific 'Tag Group'. - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - IEnumerable GetAllMemberTags(string group = null); + IEnumerable GetAllMemberTags(string tagGroup = null); /// /// Gets all tags attached to a property by entity id diff --git a/src/Umbraco.Core/Services/TagService.cs b/src/Umbraco.Core/Services/TagService.cs index 0ac9ab3f78..ebe39377ad 100644 --- a/src/Umbraco.Core/Services/TagService.cs +++ b/src/Umbraco.Core/Services/TagService.cs @@ -14,7 +14,6 @@ namespace Umbraco.Core.Services /// public class TagService : ITagService { - private readonly RepositoryFactory _repositoryFactory; private readonly IDatabaseUnitOfWorkProvider _uowProvider; @@ -128,18 +127,18 @@ namespace Umbraco.Core.Services /// /// Gets every tag stored in the database /// - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - public IEnumerable GetAllTags(string group = null) + public IEnumerable GetAllTags(string tagGroup = null) { using (var repository = _repositoryFactory.CreateTagsRepository(_uowProvider.GetUnitOfWork())) { - if (group.IsNullOrWhiteSpace()) + if (tagGroup.IsNullOrWhiteSpace()) { return repository.GetAll(); } - var query = Query.Builder.Where(x => x.Group == group); + var query = Query.Builder.Where(x => x.Group == tagGroup); var definitions = repository.GetByQuery(query); return definitions; } @@ -148,45 +147,45 @@ namespace Umbraco.Core.Services /// /// Gets all tags for content items /// - /// Use the optional group parameter to limit the + /// Use the optional tagGroup parameter to limit the /// result to a specific 'Tag Group'. - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - public IEnumerable GetAllContentTags(string group = null) + public IEnumerable GetAllContentTags(string tagGroup = null) { using (var repository = _repositoryFactory.CreateTagsRepository(_uowProvider.GetUnitOfWork())) { - return repository.GetTagsForEntityType(TaggableObjectTypes.Content, group); + return repository.GetTagsForEntityType(TaggableObjectTypes.Content, tagGroup); } } /// /// Gets all tags for media items /// - /// Use the optional group parameter to limit the + /// Use the optional tagGroup parameter to limit the /// result to a specific 'Tag Group'. - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - public IEnumerable GetAllMediaTags(string group = null) + public IEnumerable GetAllMediaTags(string tagGroup = null) { using (var repository = _repositoryFactory.CreateTagsRepository(_uowProvider.GetUnitOfWork())) { - return repository.GetTagsForEntityType(TaggableObjectTypes.Media, group); + return repository.GetTagsForEntityType(TaggableObjectTypes.Media, tagGroup); } } /// /// Gets all tags for member items /// - /// Use the optional group parameter to limit the + /// Use the optional tagGroup parameter to limit the /// result to a specific 'Tag Group'. - /// Optional name of the 'Tag Group' + /// Optional name of the 'Tag Group' /// An enumerable list of - public IEnumerable GetAllMemberTags(string group = null) + public IEnumerable GetAllMemberTags(string tagGroup = null) { using (var repository = _repositoryFactory.CreateTagsRepository(_uowProvider.GetUnitOfWork())) { - return repository.GetTagsForEntityType(TaggableObjectTypes.Member, group); + return repository.GetTagsForEntityType(TaggableObjectTypes.Member, tagGroup); } }