using Microsoft.AspNetCore.Mvc; namespace BpsRwApp.Controllers { [Route("[controller]/[action]")] public class DataPendampingRwController : AppControllerBase { public IActionResult Index() { return View(); } [HttpGet] public IActionResult TableRapot() { var data = new[] { new { nama = "Risky Adi Putra", checklist = "
10
", berat_sampah = "
10
", foto = "10", rumah_aktif_memilah = "
0
", status = "
Sangat Baik
", }, new { nama = "Sulaiman", checklist = "
11
", berat_sampah = "
10
", foto = "889", rumah_aktif_memilah = "
11
", status = "
Baik
", }, new { nama = "Siti Nurhaliza", checklist = "
12
", berat_sampah = "
10
", foto = "22", rumah_aktif_memilah = "
0
", status = "
Baik
", }, new { nama = "Budi Santoso", checklist = "
18
", berat_sampah = "
1
", foto = "889", rumah_aktif_memilah = "
11
", status = "
Baik
", }, new { nama = "Dewi Lestari", checklist = "
1
", berat_sampah = "
10
", foto = "22", rumah_aktif_memilah = "
10
", status = "
Baik
", }, new { nama = "Andi Prabowo", checklist = "
17
", berat_sampah = "
11
", foto = "889", rumah_aktif_memilah = "
11
", status = "
Sangat Baik
", }, new { nama = "Nina Sari", checklist = "
15
", berat_sampah = "
10
", foto = "22", rumah_aktif_memilah = "
10
", status = "
Sengat Baik
", }, new { nama = "Hendra Wijaya", checklist = "
1
", berat_sampah = "
11
", foto = "889", rumah_aktif_memilah = "
11
", status = "
Sangat Baik
", }, new { nama = "Lina Marlina", checklist = "
12
", berat_sampah = "
10
", foto = "22", rumah_aktif_memilah = "
10
", status = "
Sangat Baik
", }, new { nama = "Yudi Hartono", checklist = "
16
", berat_sampah = "
11
", foto = "889", rumah_aktif_memilah = "
11
", status = "
Sangat Baik
", }, }; var response = new { data = data }; return Json(response); } [HttpGet] public IActionResult TableChecklist() { var data = new[] { new { nama = "Risky Adi Putra", checklist = "
10
", foto = "10", rumah_aktif_memilah = "
0/12
", aksi = "
" + "Detail" + "
", }, new { nama = "Sulaiman", checklist = "
11
", foto = "889", rumah_aktif_memilah = "
11/11
", aksi = "
" + "Detail" + "
", }, new { nama = "Siti Nurhaliza", checklist = "
12
", foto = "22", rumah_aktif_memilah = "
0/10
", aksi = "
" + "Detail" + "
", }, new { nama = "Budi Santoso", checklist = "
18
", foto = "889", rumah_aktif_memilah = "
11/11
", aksi = "
" + "Detail" + "
", }, new { nama = "Dewi Lestari", checklist = "
1
", foto = "22", rumah_aktif_memilah = "
10/10
", aksi = "
" + "Detail" + "
", }, new { nama = "Andi Prabowo", checklist = "
17
", foto = "889", rumah_aktif_memilah = "
11/11
", aksi = "
" + "Detail" + "
", }, new { nama = "Nina Sari", checklist = "
15
", foto = "22", rumah_aktif_memilah = "
10/10
", aksi = "
" + "Detail" + "
", }, new { nama = "Hendra Wijaya", checklist = "
1
", foto = "889", rumah_aktif_memilah = "
11/11
", aksi = "
" + "Detail" + "
", }, new { nama = "Lina Marlina", checklist = "
12
", foto = "22", rumah_aktif_memilah = "
10/10
", aksi = "
" + "Detail" + "
", }, new { nama = "Yudi Hartono", checklist = "
16
", foto = "889", rumah_aktif_memilah = "
11/11
", aksi = "
" + "Detail" + "
", }, }; var response = new { data = data }; return Json(response); } [HttpGet] public IActionResult TableBeratSampah() { var data = new[] { new { nama = "Risky Adi Putra", total_berat = 104, mudah_terurai = 104, material_daur_ulang = 104, b3 = 104, residu = 104, }, new { nama = "Sulaiman", total_berat = 67, mudah_terurai = 67, material_daur_ulang = 67, b3 = 67, residu = 67, }, new { nama = "Siti Nurhaliza", total_berat = 110, mudah_terurai = 110, material_daur_ulang = 110, b3 = 110, residu = 110, }, new { nama = "Budi Santoso", total_berat = 88, mudah_terurai = 88, material_daur_ulang = 88, b3 = 88, residu = 88, }, new { nama = "Dewi Lestari", total_berat = 90, mudah_terurai = 90, material_daur_ulang = 90, b3 = 90, residu = 90, }, new { nama = "Andi Prabowo", total_berat = 72, mudah_terurai = 72, material_daur_ulang = 72, b3 = 72, residu = 72, }, new { nama = "Nina Sari", total_berat = 81, mudah_terurai = 81, material_daur_ulang = 81, b3 = 81, residu = 81, }, new { nama = "Hendra Wijaya", total_berat = 65, mudah_terurai = 65, material_daur_ulang = 65, b3 = 65, residu = 65, }, new { nama = "Lina Marlina", total_berat = 78, mudah_terurai = 78, material_daur_ulang = 78, b3 = 78, residu = 78, }, new { nama = "Yudi Hartono", total_berat = 95, mudah_terurai = 95, material_daur_ulang = 95, b3 = 95, residu = 95, }, }; var response = new { data = data }; return Json(response); } } }