134 lines
2.8 KiB
C#
134 lines
2.8 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace MyApp.Namespace
|
|
{
|
|
[Route("layanan")]
|
|
public class LayananController : Controller
|
|
{
|
|
|
|
[HttpGet("amdal")]
|
|
public IActionResult Amdal()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("ppid")]
|
|
public IActionResult Ppid()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("ewaste")]
|
|
public IActionResult Ewaste()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("lab")]
|
|
public IActionResult Lab()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("bulky-waste")]
|
|
public IActionResult BulkyWaste()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("bus-toilet")]
|
|
public IActionResult BusToilet()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("bps-rw")]
|
|
public IActionResult Bpsrw()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
[HttpGet("whistleblowing")]
|
|
public IActionResult Whistleblowing()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: LayananController
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: LayananController/Details/5
|
|
public ActionResult Details(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: LayananController/Create
|
|
public ActionResult Create()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: LayananController/Create
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Create(IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
|
|
// GET: LayananController/Edit/5
|
|
public ActionResult Edit(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: LayananController/Edit/5
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Edit(int id, IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
|
|
// GET: LayananController/Delete/5
|
|
public ActionResult Delete(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: LayananController/Delete/5
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Delete(int id, IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
}
|
|
}
|