using Microsoft.AspNetCore.Mvc; namespace MyApp.Namespace { [Route("profil")] public class ProfilController : Controller { [HttpGet("organisasi")] public IActionResult Organisasi() { return View(); } [HttpGet("bidang")] public IActionResult Bidang() { return View(); } [HttpGet("suku-dinas/jakarta-pusat")] public IActionResult Jakpus() { return View("Sudin/Jakpus"); } [HttpGet("suku-dinas/jakarta-utara")] public IActionResult Jakut() { return View("Sudin/Jakut"); } [HttpGet("suku-dinas/jakarta-barat")] public IActionResult Jakbar() { return View("Sudin/Jakbar"); } [HttpGet("suku-dinas/jakarta-selatan")] public IActionResult Jaksel() { return View("Sudin/Jaksel"); } [HttpGet("suku-dinas/jakarta-timur")] public IActionResult Jaktim() { return View("Sudin/Jaktim"); } [HttpGet("tupoksi")] public IActionResult Tupoksi() { return View(); } // GET: ProfilController public ActionResult Index() { return View(); } // GET: ProfilController/Details/5 public ActionResult Details(int id) { return View(); } // GET: ProfilController/Create public ActionResult Create() { return View(); } // POST: ProfilController/Create [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create(IFormCollection collection) { try { return RedirectToAction(nameof(Index)); } catch { return View(); } } // GET: ProfilController/Edit/5 public ActionResult Edit(int id) { return View(); } // POST: ProfilController/Edit/5 [HttpPost] [ValidateAntiForgeryToken] public ActionResult Edit(int id, IFormCollection collection) { try { return RedirectToAction(nameof(Index)); } catch { return View(); } } // GET: ProfilController/Delete/5 public ActionResult Delete(int id) { return View(); } // POST: ProfilController/Delete/5 [HttpPost] [ValidateAntiForgeryToken] public ActionResult Delete(int id, IFormCollection collection) { try { return RedirectToAction(nameof(Index)); } catch { return View(); } } } }