Skip to content

Commit

Permalink
Merge pull request #442 from wvdweerd/438-Add-GetAllCategories-in-Art…
Browse files Browse the repository at this point in the history
…iculateTagService

Add method GetAllCategories to the ArticulateTagService
  • Loading branch information
Shazwazza authored Feb 8, 2024
2 parents 300167a + 378679b commit d13a014
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Articulate/Services/ArticulateTagService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,14 @@ public PostsByTagModel GetContentByTag(
pageSize);
}
}

public IEnumerable<string> GetAllCategories(
IMasterModel masterModel)
{
using (ScopeProvider.CreateCoreScope(autoComplete: true))
{
return _repository.GetAllCategories(masterModel);
}
}
}
}

0 comments on commit d13a014

Please sign in to comment.