From 87d4a6373a5bf9b31fb87b7812a1bbb0b765719d Mon Sep 17 00:00:00 2001 From: code liturgy Date: Sat, 12 Nov 2022 13:50:32 -0500 Subject: [PATCH] Fix compiler errors --- CodeLiturgy.Domain/CodeLiturgy.Domain.csproj | 2 +- CodeLiturgy.Views/CodeLiturgy.Views.csproj | 3 - CodeLiturgy.Views/Utils/LayoutCache.cs | 82 +------------------- 3 files changed, 2 insertions(+), 85 deletions(-) diff --git a/CodeLiturgy.Domain/CodeLiturgy.Domain.csproj b/CodeLiturgy.Domain/CodeLiturgy.Domain.csproj index 80ecd50..6e7366a 100644 --- a/CodeLiturgy.Domain/CodeLiturgy.Domain.csproj +++ b/CodeLiturgy.Domain/CodeLiturgy.Domain.csproj @@ -10,7 +10,7 @@ - + diff --git a/CodeLiturgy.Views/CodeLiturgy.Views.csproj b/CodeLiturgy.Views/CodeLiturgy.Views.csproj index 70f76a5..ec4d830 100644 --- a/CodeLiturgy.Views/CodeLiturgy.Views.csproj +++ b/CodeLiturgy.Views/CodeLiturgy.Views.csproj @@ -10,7 +10,6 @@ - all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -83,8 +82,6 @@ - - diff --git a/CodeLiturgy.Views/Utils/LayoutCache.cs b/CodeLiturgy.Views/Utils/LayoutCache.cs index c24feff..72605f0 100644 --- a/CodeLiturgy.Views/Utils/LayoutCache.cs +++ b/CodeLiturgy.Views/Utils/LayoutCache.cs @@ -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() - { - new RouteRecord( - DataKeyName, - DataLocation, - nameof(DataController), - new List() - { - new RouteRecord( - CompaniesKeyName, - CompaniesLocation, - nameof(CompaniesController), - new List() - ), - new RouteRecord( - CountriesKeyName, - CountriesLocation, - nameof(CountriesController), - new List() - ), - new RouteRecord( - CurrenciesKeyName, - CurrenciesLocation, - nameof(CurrenciesController), - new List() - ), - new RouteRecord( - BanksKeyName, - BanksLocation, - nameof(BanksController), - new List() - ), - new RouteRecord( - DataUsersKeyName, - DataUsersLocation, - nameof(DataUsersController), - new List() - ), - - }, - ViewType.Data - ), - new RouteRecord( - SystemKeyName, - SystemRouteLocation, - nameof(SystemController), - new List() - { - new RouteRecord( - RolesKeyName, - RolesLocation, - nameof(RolesController), - new List() - ), - new RouteRecord( - ApplicationUsersKeyName, - ApplicationUsersLocation, - nameof(ApplicationUsersController), - new List() - ), - new RouteRecord( - LogsKeyName, - LogsLocation, - nameof(LogsController), - new List() - ) - }, - ViewType.System - ), - new RouteRecord( - AccountKeyName, - AccountRouteLocation, - nameof(AccountController), - new List() - { - new RouteRecord(ChangePasswordKeyName, ChangePasswordRouteLocation, nameof(AccountController), new List()) - }, - ViewType.Account - ), - }, ViewType.Root); + new List(), ViewType.Root); #endregion Route Tree