BudgetAnalyser.Engine.Services.TransactionManagerService.FilterableBuckets C# (CSharp) Method

FilterableBuckets() public method

Provides a list of buckets for display purposes for filtering the transactions shown. This list will include a blank item to represent no filtering, and a [Uncategorised] to represent a filter to show only transactions with no bucket allocation.
public FilterableBuckets ( ) : IEnumerable
return IEnumerable
        public IEnumerable<string> FilterableBuckets()
        {
            return this.bucketRepository.Buckets
                .Where(b => b.Active)
                .Select(b => b.Code)
                .Union(new[] { string.Empty, TransactionConstants.UncategorisedFilter })
                .OrderBy(b => b);
        }