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 = "