108 lines
2.3 KiB
C#
108 lines
2.3 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace MyApp.Namespace
|
|
{
|
|
[Route("seputar")]
|
|
public class SeputarController : Controller
|
|
{
|
|
[HttpGet("berita")]
|
|
public IActionResult Berita()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("detail-berita")]
|
|
public IActionResult DetailBerita()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("video")]
|
|
public IActionResult Video()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("kontak-kami")]
|
|
public IActionResult Kontak()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: SeputarController
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: SeputarController/Details/5
|
|
public ActionResult Details(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// GET: SeputarController/Create
|
|
public ActionResult Create()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: SeputarController/Create
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Create(IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
|
|
// GET: SeputarController/Edit/5
|
|
public ActionResult Edit(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: SeputarController/Edit/5
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Edit(int id, IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
|
|
// GET: SeputarController/Delete/5
|
|
public ActionResult Delete(int id)
|
|
{
|
|
return View();
|
|
}
|
|
|
|
// POST: SeputarController/Delete/5
|
|
[HttpPost]
|
|
[ValidateAntiForgeryToken]
|
|
public ActionResult Delete(int id, IFormCollection collection)
|
|
{
|
|
try
|
|
{
|
|
return RedirectToAction(nameof(Index));
|
|
}
|
|
catch
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
}
|
|
}
|