Fix compiler errors

This commit is contained in:
code liturgy 2022-11-12 13:50:32 -05:00
parent 620745f506
commit 87d4a6373a
3 changed files with 2 additions and 85 deletions

View File

@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.49.0-pre1" />
<PackageReference Include="Grpc.AspNetCore" Version="2.50.0-pre1" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="6.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Authorization.Policy" Version="2.2.0" />

View File

@ -10,7 +10,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.Mvc" Version="5.2.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.8" />
<PackageReference Include="Redis.OM" Version="0.2.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@ -83,8 +82,6 @@
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="Views\Data\Banks\Index.cshtml" />
<AdditionalFiles Include="Views\Data\Currencies\Index.cshtml" />
<AdditionalFiles Include="Views\Account\Index.cshtml" />
</ItemGroup>

View File

@ -1,6 +1,5 @@
using System.Diagnostics;
using CodeLiturgy.Views.Controllers;
using CodeLiturgy.Views.Controllers.Data;
using CodeLiturgy.Views.Languages;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
@ -20,86 +19,7 @@ internal class LayoutCache
RootKeyName,
RootLocation,
nameof(HomeController),
new List<RouteRecord>()
{
new RouteRecord(
DataKeyName,
DataLocation,
nameof(DataController),
new List<RouteRecord>()
{
new RouteRecord(
CompaniesKeyName,
CompaniesLocation,
nameof(CompaniesController),
new List<RouteRecord>()
),
new RouteRecord(
CountriesKeyName,
CountriesLocation,
nameof(CountriesController),
new List<RouteRecord>()
),
new RouteRecord(
CurrenciesKeyName,
CurrenciesLocation,
nameof(CurrenciesController),
new List<RouteRecord>()
),
new RouteRecord(
BanksKeyName,
BanksLocation,
nameof(BanksController),
new List<RouteRecord>()
),
new RouteRecord(
DataUsersKeyName,
DataUsersLocation,
nameof(DataUsersController),
new List<RouteRecord>()
),
},
ViewType.Data
),
new RouteRecord(
SystemKeyName,
SystemRouteLocation,
nameof(SystemController),
new List<RouteRecord>()
{
new RouteRecord(
RolesKeyName,
RolesLocation,
nameof(RolesController),
new List<RouteRecord>()
),
new RouteRecord(
ApplicationUsersKeyName,
ApplicationUsersLocation,
nameof(ApplicationUsersController),
new List<RouteRecord>()
),
new RouteRecord(
LogsKeyName,
LogsLocation,
nameof(LogsController),
new List<RouteRecord>()
)
},
ViewType.System
),
new RouteRecord(
AccountKeyName,
AccountRouteLocation,
nameof(AccountController),
new List<RouteRecord>()
{
new RouteRecord(ChangePasswordKeyName, ChangePasswordRouteLocation, nameof(AccountController), new List<RouteRecord>())
},
ViewType.Account
),
}, ViewType.Root);
new List<RouteRecord>(), ViewType.Root);
#endregion Route Tree