From 9bda1549479f9c3bfe1c8a3279306714ea541537 Mon Sep 17 00:00:00 2001 From: Rohmad Eko Wahyudi Date: Wed, 12 Nov 2025 08:05:31 +0700 Subject: [PATCH] feat: membenahi error offtaker --- Program.cs | 6 +++++ Views/Data/Offtaker/Index.cshtml | 4 +++ Views/Shared/_LayoutApp.cshtml | 1 + Views/Shared/_SidebarUnified.cshtml | 38 ++++++++++++++--------------- 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/Program.cs b/Program.cs index f9c1874..49aa603 100644 --- a/Program.cs +++ b/Program.cs @@ -115,6 +115,12 @@ app.UseAntiforgery(); app.UseAuthorization(); // Map routes with .NET 9 improvements +// Data routes +app.MapControllerRoute( + name: "data", + pattern: "Data/{controller}/{action=Index}/{id?}", + defaults: new { area = "" }); + // Master data routes app.MapControllerRoute( name: "master", diff --git a/Views/Data/Offtaker/Index.cshtml b/Views/Data/Offtaker/Index.cshtml index a8910a2..894971c 100644 --- a/Views/Data/Offtaker/Index.cshtml +++ b/Views/Data/Offtaker/Index.cshtml @@ -2,6 +2,10 @@ ViewData["Title"] = "Offtaker Sampah"; } +@section Styles { + +} +
diff --git a/Views/Shared/_LayoutApp.cshtml b/Views/Shared/_LayoutApp.cshtml index 3325d4f..ac209ff 100644 --- a/Views/Shared/_LayoutApp.cshtml +++ b/Views/Shared/_LayoutApp.cshtml @@ -38,6 +38,7 @@ + @await RenderSectionAsync("Styles", required: false) diff --git a/Views/Shared/_SidebarUnified.cshtml b/Views/Shared/_SidebarUnified.cshtml index 7c7c78d..d47bc96 100644 --- a/Views/Shared/_SidebarUnified.cshtml +++ b/Views/Shared/_SidebarUnified.cshtml @@ -82,11 +82,11 @@ Data @@ -130,20 +130,20 @@ Master Data