Refactored a few more methods that rely on the IConfiguration object to use IConfigHelper instead.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-11-25 08:40:14 -07:00
parent d4dda481be
commit 230433f784
7 changed files with 17 additions and 11 deletions

View File

@@ -1,10 +1,10 @@
@{
ViewData["Title"] = "Database Migration";
}
@inject IConfiguration config;
@inject IConfigHelper config
@inject ITranslationHelper translator
@{
var userLanguage = config[nameof(UserConfig.UserLanguage)] ?? "en_US";
var userLanguage = config.GetServerLanguage();
}
@using CarCareTracker.Helper
@model AdminViewModel