Skip to content

Commit

Permalink
Add method GetAllCategories to the ArticulateTagService
Browse files Browse the repository at this point in the history
  • Loading branch information
wvdweerd committed Jan 21, 2024
1 parent 2973fb1 commit 378679b
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 378679b

Please sign in to comment.