133 lines
2.8 KiB
C#
133 lines
2.8 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace dlh_net.Controllers
|
|
{
|
|
[Route("program")]
|
|
public class ProgramController : Controller
|
|
{
|
|
[HttpGet("udara")]
|
|
public IActionResult Udara()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("air")]
|
|
public IActionResult Air()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("sampah")]
|
|
public IActionResult Sampah()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("anggaran")]
|
|
public IActionResult Anggaran()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("lkip")]
|
|
public IActionResult LKIP()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("perjanjian-kinerja")]
|
|
public IActionResult PerjanjianKinerja()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("pengawasan")]
|
|
public IActionResult Pengawasan()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("rencana-strategis")]
|
|
public IActionResult RencanaStrategis()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
// GET: ProgramController
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: ProgramController/Details/5
|
|
public ActionResult Details(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: ProgramController/Create
|
|
public ActionResult Create()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: ProgramController/Create
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Create(IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
|
|
// GET: ProgramController/Edit/5
|
|
public ActionResult Edit(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: ProgramController/Edit/5
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Edit(int id, IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
|
|
// GET: ProgramController/Delete/5
|
|
public ActionResult Delete(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: ProgramController/Delete/5
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Delete(int id, IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
}
|
|
}
|