diff --git a/Areas/Dinas/Controllers/KategoriFasilitasController.cs b/Areas/Dinas/Controllers/KategoriFasilitasController.cs new file mode 100644 index 0000000..6492f74 --- /dev/null +++ b/Areas/Dinas/Controllers/KategoriFasilitasController.cs @@ -0,0 +1,64 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BankSampahApp.Areas.Dinas.Controllers +{ + [Area("Dinas")] + [Route("Dinas/[controller]/[action]")] + public class KategoriFasilitasController : Controller + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { + nama = "Penduduk", + aksi = "
", + }, + new { + nama = "Institusi Pendidikan", + aksi = "", + }, + new { + nama = "Kantor", + aksi = "", + }, + new { + nama = "Area", + aksi = "", + }, + new { + nama = "Tempat Beribadah", + aksi = "", + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Areas/Dinas/Views/KategoriFasilitas/Index.cshtml b/Areas/Dinas/Views/KategoriFasilitas/Index.cshtml new file mode 100644 index 0000000..5f231ea --- /dev/null +++ b/Areas/Dinas/Views/KategoriFasilitas/Index.cshtml @@ -0,0 +1,79 @@ +@{ + ViewData["Title"] = "Kategori Fasilitas"; +} + +| No | +Nama Kategori Fasilitas | +Aksi | +
|---|