Refactor MemoryCacheExtensions and clean up HistoryController

- Introduced a static readonly field `BaseId` in `MemoryCacheExtensions.cs`.
- Refactored `GetEnumAsDictionary<TEnum>` to use expression-bodied syntax and LINQ for improved readability and efficiency.
- Removed the import statement for `Microsoft.IdentityModel.Tokens` in `HistoryController.cs`, indicating a potential shift in authentication/authorization handling.
This commit is contained in:
Developer 02
2025-05-08 13:52:57 +02:00
parent 7fefc68061
commit 0698b44b68
2 changed files with 7 additions and 12 deletions

View File

@@ -5,7 +5,6 @@ using EnvelopeGenerator.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.IdentityModel.Tokens;
using static EnvelopeGenerator.Common.Constants;