using Microsoft.AspNetCore.Mvc; namespace MyApp.Namespace { public class LayananController : Controller { // 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(); } } } }